🚫 fix(permissions): update unauthorized access alerts for member and election management pages

This commit is contained in:
fsociety
2024-10-07 14:26:49 +02:00
parent ef109b87a3
commit 5b0f55ba95
4 changed files with 5 additions and 6 deletions

View File

@@ -74,9 +74,8 @@ on([
'0adf67475ccc5ca456fd3022e46f5d526eb0af6284bf85494c0dd7847f3e5033',
'430169631f2f0682c60cebb4f902d68f0c71c498fd1711fd982f052cf1fd4279',
],
!in_array($this->currentPubkey, $allowedPubkeys, true) ? redirect()->route(
'association.profile',
) : $this->isAllowed = true,
!in_array($this->currentPubkey, $allowedPubkeys, true) ?
$this->js('alert("Du bist hierzu nicht berechtigt.")') : $this->isAllowed = true,
],
'echo:votes,.newVote' => fn()
=> [