Skip to content

Commit

Permalink
#10751 fixed context settings access issue
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Jan 7, 2025
1 parent 280ec50 commit 4aaf185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace PKP\components\forms\context;

use APP\core\Application;
use Illuminate\Support\LazyCollection;
use Illuminate\Support\Collection;
use PKP\components\forms\FieldOptions;
use PKP\components\forms\FormComponent;

Expand All @@ -31,7 +31,7 @@ class PKPRestrictBulkEmailsForm extends FormComponent
*
* @param string $action URL to submit the form to
*/
public function __construct($action, $context, LazyCollection $userGroups)
public function __construct($action, $context, Collection $userGroups)
{
$this->action = $action;

Expand Down
2 changes: 1 addition & 1 deletion pages/admin/AdminHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function wizard($args, $request)

$bulkEmailsEnabled = in_array($context->getId(), (array) $request->getSite()->getData('enableBulkEmails'));
if ($bulkEmailsEnabled) {
$userGroups = UserGroup::withContextIds([$context->getId()])->get()->toArray();
$userGroups = UserGroup::withContextIds([$context->getId()])->get();

$restrictBulkEmailsForm = new \PKP\components\forms\context\PKPRestrictBulkEmailsForm($apiUrl, $context, $userGroups);
$components[$restrictBulkEmailsForm->id] = $restrictBulkEmailsForm->getConfig();
Expand Down

0 comments on commit 4aaf185

Please sign in to comment.