diff options
author | root | 2019-02-19 18:53:50 +0100 |
---|---|---|
committer | root | 2019-02-19 18:53:50 +0100 |
commit | 0ad4c0f8196b61699754762aacbaab0223478ab9 (patch) | |
tree | de434c4aea8d07ecd01cd3badd48d057d62c2d1b /modules-available/dozmod/hooks/main-warning.inc.php | |
parent | [usb-lock-off] Edit rule cleanup and fix of the dropdown boxes. (diff) | |
parent | [statistics] Fix RAM change warning to handle increase too (diff) | |
download | slx-admin-0ad4c0f8196b61699754762aacbaab0223478ab9.tar.gz slx-admin-0ad4c0f8196b61699754762aacbaab0223478ab9.tar.xz slx-admin-0ad4c0f8196b61699754762aacbaab0223478ab9.zip |
Merge branch 'master' into usb-lock-offusb-lock-off
Diffstat (limited to 'modules-available/dozmod/hooks/main-warning.inc.php')
-rw-r--r-- | modules-available/dozmod/hooks/main-warning.inc.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules-available/dozmod/hooks/main-warning.inc.php b/modules-available/dozmod/hooks/main-warning.inc.php index ffa87692..1778bb9d 100644 --- a/modules-available/dozmod/hooks/main-warning.inc.php +++ b/modules-available/dozmod/hooks/main-warning.inc.php @@ -4,8 +4,10 @@ * Show notification in main window if there are images that should be deleted and are waiting for confirmation */ -$res = Database::queryFirst("SELECT Count(*) AS cnt FROM sat.imageversion WHERE deletestate = 'SHOULD_DELETE'", array(), true); -if (isset($res['cnt']) && $res['cnt'] > 0) { - Message::addInfo('dozmod.images-pending-delete-exist', true, $res['cnt']); -} -unset($res); +if (User::hasPermission('.dozmod.expiredimages.delete')) { + $res = Database::queryFirst("SELECT Count(*) AS cnt FROM sat.imageversion WHERE deletestate = 'SHOULD_DELETE'", array(), true); + if (isset($res['cnt']) && $res['cnt'] > 0) { + Message::addInfo('dozmod.images-pending-delete-exist', true, $res['cnt']); + } + unset($res); +}
\ No newline at end of file |