allow Seminary moderators to access all Achievement media
This commit is contained in:
parent
59778e2b2e
commit
1e3f25c0cf
1 changed files with 4 additions and 2 deletions
|
|
@ -249,8 +249,10 @@
|
|||
switch($locked)
|
||||
{
|
||||
case null:
|
||||
if(is_null($character) || !$this->Achievements->hasCharacterAchievedAchievement($achievement['id'], $character['id'])) {
|
||||
throw new \nre\exceptions\AccessDeniedException();
|
||||
if(count(array_intersect(array('admin', 'moderator'), \hhu\z\controllers\SeminaryController::$character['characterroles'])) == 0) {
|
||||
if(is_null($character) || !$this->Achievements->hasCharacterAchievedAchievement($achievement['id'], $character['id'])) {
|
||||
throw new \nre\exceptions\AccessDeniedException();
|
||||
}
|
||||
}
|
||||
$index = 'achieved_achievementsmedia_id';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue