Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Education presenter checking general event update permission instead of Education event update permission #2307

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\AccountancyModule\EducationModule;

use Model\Auth\Resources\Event as ResourceEvent;
use Model\Auth\Resources\Education as ResourceEducation;
use Model\Cashbook\ObjectType;
use Model\Event\Education;
use Model\Event\Exception\EducationNotFound;
Expand Down Expand Up @@ -41,7 +41,7 @@ protected function startup(): void

$this->template->setParameters([
'event' => $this->event,
'isEditable' => $this->isEditable = $this->authorizator->isAllowed(ResourceEvent::UPDATE, $this->aid),
'isEditable' => $this->isEditable = $this->authorizator->isAllowed(ResourceEducation::UPDATE, $this->aid),
]);
}

Expand Down
2 changes: 2 additions & 0 deletions app/model/Auth/Resources/Education.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ final class Education
public const ACCESS_PARTICIPANTS = [self::class, 'EV_ParticipantEducation_ALL_EventEducation'];
public const UPDATE_PARTICIPANT = [self::class, 'EV_ParticipantEducation_UPDATE_EventEducation'];

public const UPDATE = [self::class, 'EV_EventEducation_UPDATE'];

public const UPDATE_REAL_BUDGET_SPENDING = [self::class, 'GR_Statement_UPDATE_EventEducationReal'];
}
Loading