- quizmasters now might edit content group assignments without being member of the group
This commit is contained in:
parent
4ace35b770
commit
8c87b29030
@ -184,7 +184,7 @@ switch ($action) {
|
|||||||
// remove group ID's this user cannot edit
|
// remove group ID's this user cannot edit
|
||||||
$groupids_with_editor_access = [];
|
$groupids_with_editor_access = [];
|
||||||
foreach ($groupids as $groupid) {
|
foreach ($groupids as $groupid) {
|
||||||
if (is_user_editor_to_group($groupid, $nickname)) {
|
if (is_user_editor_to_group($groupid, $nickname) || ($privilege === PRIVILEGE_QUIZMASTER)) {
|
||||||
$groupids_with_editor_access[] = $groupid;
|
$groupids_with_editor_access[] = $groupid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -192,7 +192,7 @@ switch ($action) {
|
|||||||
// create or update
|
// create or update
|
||||||
if (!$update) {
|
if (!$update) {
|
||||||
create_game($name, $owner, $description);
|
create_game($name, $owner, $description);
|
||||||
} else if (is_user_contributor_to_game($gameid, $nickname)) {
|
} else if (is_user_contributor_to_game($gameid, $nickname) || ($privilege === PRIVILEGE_QUIZMASTER)) {
|
||||||
$game_data = get_game($gameid);
|
$game_data = get_game($gameid);
|
||||||
if (count($game_data) !== 0) {
|
if (count($game_data) !== 0) {
|
||||||
// group management
|
// group management
|
||||||
|
Loading…
x
Reference in New Issue
Block a user