Allow permission to export devices and extensions to be assigned to groups (#4916)
* Update app_config.php * Update device_download.php * Update app_config.php * Update extension_download.php
This commit is contained in:
@@ -31,13 +31,13 @@
|
||||
require_once "resources/paging.php";
|
||||
|
||||
//check permissions
|
||||
if (if_group("superadmin")) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
if (permission_exists('device_export')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
|
||||
Reference in New Issue
Block a user