Explorar o código

Remove Copy & Toggle buttons, by default do not assign device_log_add permission.

fusionate hai 1 ano
pai
achega
7f90aee8b3
Modificáronse 2 ficheiros con 1 adicións e 7 borrados
  1. 1 1
      app_config.php
  2. 0 6
      device_logs.php

+ 1 - 1
app_config.php

@@ -17,7 +17,7 @@
 		//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
 		$y++;
 		$apps[$x]['permissions'][$y]['name'] = 'device_log_add';
-		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+		//$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
 		//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
 		$y++;
 		$apps[$x]['permissions'][$y]['name'] = 'device_log_edit';

+ 0 - 6
device_logs.php

@@ -205,12 +205,6 @@
 	if (permission_exists('device_log_add')) {
 		echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'device_log_edit.php']);
 	}
-	if (permission_exists('device_log_add') && $device_logs) {
-		echo button::create(['type'=>'button','label'=>$text['button-copy'],'icon'=>$_SESSION['theme']['button_icon_copy'],'name'=>'btn_copy','onclick'=>"modal_open('modal-copy','btn_copy');"]);
-	}
-	if (permission_exists('device_log_edit') && $device_logs) {
-		echo button::create(['type'=>'button','label'=>$text['button-toggle'],'icon'=>$_SESSION['theme']['button_icon_toggle'],'name'=>'btn_toggle','onclick'=>"modal_open('modal-toggle','btn_toggle');"]);
-	}
 	if (permission_exists('device_log_delete') && $device_logs) {
 		echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','onclick'=>"modal_open('modal-delete','btn_delete');"]);
 	}