Skip to content

Commit ac63e72

Browse files
caseysoftwareclaude
andcommitted
Let users-module editors save other users' preferences
do_preference_aed.php still checked canEdit('admin'). The admin module was renamed to users in migration 048, so the check always failed and saving preferences for any other user redirected to access denied, even for the admin account. Refs #385 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016CP89WVmGZ1VVCCZMS6ntN
1 parent d88f1fd commit ac63e72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎modules/system/do_preference_aed.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
$AppUI->redirect(ACCESS_DENIED);
1414
}
1515

16-
if ((!($AppUI->user_id == $pref_user) && !canEdit('admin')) && $pref_user) {
16+
if ((!($AppUI->user_id == $pref_user) && !canEdit('users')) && $pref_user) {
1717
$AppUI->redirect(ACCESS_DENIED);
1818
}
1919
$emails = (isset($_POST['tl_assign'])) ? 1 : 0;

0 commit comments

Comments
 (0)