From: konrad Date: Sun, 16 May 2010 17:50:36 +0000 (+0000) Subject: fix: set privileges as well as rights X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4818f5696d8e906ecaa15b3b55f7f7f23e937a0a;p=web%2Fkonrad%2Fsmoke.git fix: set privileges as well as rights git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@463 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/mwin/acltabs.cpp b/src/mwin/acltabs.cpp index 65965b6..04a6998 100644 --- a/src/mwin/acltabs.cpp +++ b/src/mwin/acltabs.cpp @@ -673,6 +673,7 @@ void MRoleTab::editRights() MCheckList acl; QStringList rrights=gr.getrole().value().rights(); QStringList arights=ar.getrights(); + qSort(arights); for(int i=0;i - + diff --git a/www/inc/machine/muser.php b/www/inc/machine/muser.php index 7f24d7d..11f6585 100644 --- a/www/inc/machine/muser.php +++ b/www/inc/machine/muser.php @@ -305,8 +305,8 @@ class MachineUser return; } //check rights - $allrights=WobTransaction::transactionNames(); - $allrights+=WobTransaction::privilegeNames(); + $allrights=array_merge(WobTransaction::transactionNames(), + WobTransaction::privilegeNames()); $set=$trans->getrights(); foreach($set as $r){ if(!in_array($r,$allrights)){