ACL for hardware class config, RT#85057
[freeside.git] / httemplate / browse / hardware_status.html
index 9695ed3..64ad5ad 100644 (file)
@@ -2,6 +2,8 @@
                  'title'       => 'Hardware Statuses',
                  'name'        => 'hardware statuses',
                  'menubar'     => $menubar,
+                 'disableable' => 1,
+                 'disabled_statuspos' => 2,
                  'query'       => { 'table' => 'hardware_status', },
                  'count_query' => 'SELECT COUNT(*) FROM hardware_status',
                  'header'      => [ '#', 'Status' ],
@@ -14,7 +16,7 @@
 my $curuser = $FS::CurrentUser::CurrentUser;
 
 die "access denied"
-  unless $curuser->access_right('Configuration');
+  unless $curuser->access_right('Edit hardware classes and types');
 
 my $menubar = [ 'Hardware classes' => $p.'browse/hardware_class.html',
                 'Add a status' => $p.'edit/hardware_status.html' ];