diff options
author | Ineiev <ineiev@gnu.org> | 2024-11-03 14:53:34 +0000 |
---|---|---|
committer | Ineiev <ineiev@gnu.org> | 2024-11-03 14:58:12 +0000 |
commit | 3b896bd6a09b762915fca110c459bcf215a18492 (patch) | |
tree | c9c3a2ddcb71fbacc750422c37fc145a8b46902f | |
parent | ffc935e7b23a25b0abbbbace672c5b3b9bbcf4f0 (diff) | |
download | savane-3b896bd6a09b762915fca110c459bcf215a18492.tar.gz |
always allow superusers comment
-rw-r--r-- | frontend/php/include/trackers/general.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/php/include/trackers/general.php b/frontend/php/include/trackers/general.php index 5be5920b..ff847fae 100644 --- a/frontend/php/include/trackers/general.php +++ b/frontend/php/include/trackers/general.php @@ -1725,6 +1725,8 @@ function trackers_fetch_item_access_data ($item_id, $user_id) exit_no_group (); $fields['is_trackeradmin'] = member_check ($user_id, $fields['group_id'], 2); + if (user_is_super_user () && $user_id == user_getid ()) + $fields['is_trackeradmin'] = true; return $fields; } |