29 Sie
2007
29 Sie
'07
01:24
Witam!
Czy jest mozliwosc dodania jeszcze jednej opocji w uprawnieniach, np. 'zarzadzanie finansami bez kasowania'? Obecnie jest tak ze jesli dam dostep do zarzadzania finansami to osoba rozliczajaca klienta moze takze usunac ta rozliczona transakcje. Chcialbym miec mozliwosc nadania przywileju usuwania transakcji a nie zabraniac dostepu do calego modulu z finansami. Oczywiscie wyedytowalem sobie odpowiednio plik lib/accesstable.php ale za kazda aktualizacja musz to robic ponownie. Mysle ze byloby to dobre rozszerzenie funkcjonalnosci uprawnien o nowa pozycje.
Czy moj patch moze wejsc na stale do LMS'a? (w zalaczeniu)
--
Pozdrawiam Tomasz Dąbek [Thomas]
[gg: 14553 mail: tdabek_NOSPAM_@go2.pl]
--- accesstable.php.orig 2007-08-17 15:32:23.000000000 +0200
+++ accesstable.php 2007-08-29 01:08:45.000000000 +0200
@@ -40,47 +40,50 @@
$access['table'][3]['name'] = trans('finances management');
$access['table'][3]['allow_reg'] = '^((tariff)(add|info|list|move|edit|del)|(payment)(add|del|edit|info|list)|(balance|customerbalance)(new|add|ok|del|list)|(cashreg(list|add|edit|del|info))|(invoice|invoice(list|new|edit|note|report|paid))|number|export|print|cashimport|cashimportparser)$';
-$access['table'][4]['name'] = trans('configuration reload');
-$access['table'][4]['allow_reg'] = '^reload$';
+$access['table'][4]['name'] = trans('zarzadzanie finansami - bez usuwania');
+$access['table'][4]['allow_reg'] = '^((tariff)(add|info|list|move|edit)|(payment)(add|edit|info|list)|(balance|customerbalance)(new|add|ok|list)|(cashreg(list|add|edit|info))|(invoice|invoice(list|new|edit|note|report|paid))|number|export|print|cashimport|cashimportparser)$';
-$access['table'][5]['name'] = trans('customers management');
-$access['table'][5]['allow_reg'] = '^((customer|document)(add|edit|info|infoshort|list|del|print|assignments|assignmentsedit|search|warn)|documentgen|nodewarn|choosenode)$';
+$access['table'][5]['name'] = trans('configuration reload');
+$access['table'][5]['allow_reg'] = '^reload$';
-$access['table'][6]['name'] = trans('nodes management');
-$access['table'][6]['allow_reg'] = '^(node(add|info|infoshort|list|scan|search|del|edit|print|warn)|choose(mac|ip))$';
+$access['table'][6]['name'] = trans('customers management');
+$access['table'][6]['allow_reg'] = '^((customer|document)(add|edit|info|infoshort|list|del|print|assignments|assignmentsedit|search|warn)|documentgen|nodewarn|choosenode)$';
-$access['table'][7]['name'] = trans('stats access');
-$access['table'][7]['allow_reg'] = '^(traffic|traffic(print))$';
+$access['table'][7]['name'] = trans('nodes management');
+$access['table'][7]['allow_reg'] = '^(node(add|info|infoshort|list|scan|search|del|edit|print|warn)|choose(mac|ip))$';
-$access['table'][8]['name'] = trans('mailing access');
-$access['table'][8]['allow_reg'] = '^(mailing)$';
+$access['table'][8]['name'] = trans('stats access');
+$access['table'][8]['allow_reg'] = '^(traffic|traffic(print))$';
-$access['table'][9]['name'] = trans('Helpdesk (RT) administration');
-$access['table'][9]['allow_reg'] = '^(rtsearch|rtprint|(rtqueue|rtticket|rtmessage|rtnote)(add|del|edit|info|view|list|print))$';
+$access['table'][9]['name'] = trans('mailing access');
+$access['table'][9]['allow_reg'] = '^(mailing)$';
-$access['table'][10]['name'] = trans('Helpdesk (RT) operation');
-$access['table'][10]['allow_reg'] = '^(rtsearch|rtqueue(list|info|view)|(rtticket|rtmessage|rtnote)(add|edit|info|view|del|print))$';
+$access['table'][10]['name'] = trans('Helpdesk (RT) administration');
+$access['table'][10]['allow_reg'] = '^(rtsearch|rtprint|(rtqueue|rtticket|rtmessage|rtnote)(add|del|edit|info|view|list|print))$';
-$access['table'][11]['name'] = trans('accounts management');
-$access['table'][11]['allow_reg'] = '^((account|domain|alias)(list|edit|add|del))$';
+$access['table'][11]['name'] = trans('Helpdesk (RT) operation');
+$access['table'][11]['allow_reg'] = '^(rtsearch|rtqueue(list|info|view)|(rtticket|rtmessage|rtnote)(add|edit|info|view|del|print))$';
-$access['table'][12]['name'] = trans('configuration');
-$access['table'][12]['allow_reg'] = '^((host|config|numberplan|taxrate)(list|edit|add|del|load))$';
+$access['table'][12]['name'] = trans('accounts management');
+$access['table'][12]['allow_reg'] = '^((account|domain|alias)(list|edit|add|del))$';
-$access['table'][13]['name'] = trans('networks and devices management');
-$access['table'][13]['allow_reg'] = '^((net|netdev)(info|list|edit|add|del|cmp|map|remap|search)|choose(mac|ip))$';
+$access['table'][13]['name'] = trans('configuration');
+$access['table'][13]['allow_reg'] = '^((host|config|numberplan|taxrate)(list|edit|add|del|load))$';
-$access['table'][14]['name'] = trans('timetable management');
-$access['table'][14]['allow_reg'] = '^(event(list|edit|add|del|info|print|search))$';
+$access['table'][14]['name'] = trans('networks and devices management');
+$access['table'][14]['allow_reg'] = '^((net|netdev)(info|list|edit|add|del|cmp|map|remap|search)|choose(mac|ip))$';
-$access['table'][15]['name'] = trans('daemon management and configuration');
-$access['table'][15]['allow_reg'] = '^((daemoninstance|daemonconfig)(list|edit|add|del|view))$';
+$access['table'][15]['name'] = trans('timetable management');
+$access['table'][15]['allow_reg'] = '^(event(list|edit|add|del|info|print|search))$';
-$access['table'][16]['name'] = trans('cash operations');
-$access['table'][16]['allow_reg'] = '^(cashreglist|receipt|receipt(list|edit|add|del|adv)|cashreglog(info|view|add|edit|del)|choosecustomer)$';
+$access['table'][16]['name'] = trans('daemon management and configuration');
+$access['table'][16]['allow_reg'] = '^((daemoninstance|daemonconfig)(list|edit|add|del|view))$';
-$access['table'][17]['name'] = trans('customers groups management');
-$access['table'][17]['allow_reg'] = '^(customergroup(add|edit|del|info|list|move))$';
+$access['table'][17]['name'] = trans('cash operations');
+$access['table'][17]['allow_reg'] = '^(cashreglist|receipt|receipt(list|edit|add|del|adv)|cashreglog(info|view|add|edit|del)|choosecustomer)$';
+
+$access['table'][18]['name'] = trans('customers groups management');
+$access['table'][18]['allow_reg'] = '^(customergroup(add|edit|del|info|list|move))$';
$access['table'][253]['name'] = trans('users edition and addition forbidden');
$access['table'][253]['deny_reg'] = '^(user(add|del|edit|passwd))$';
_______________________________________________
lms mailing list
lms@lists.lms.org.pl
http://lists.lms.org.pl/mailman/listinfo/lms