MCheckList acl;
QStringList rrights=gr.getrole().value().rights();
QStringList arights=ar.getrights();
+ qSort(arights);
for(int i=0;i<arights.size();i++){
QString nm=arights[i];
QString lb;
</Transaction>
<Transaction name="GetAllRightNames" updating="no">
- <Call lang="php" method="$this->setrights(WobTransaction::transactionNames()+WobTransaction::privilegeNames());"/>
+ <Call lang="php" method="$this->setrights(array_merge(WobTransaction::transactionNames(),WobTransaction::privilegeNames()));"/>
<Output>
<Var name="rights" type="List:astring"/>
</Output>
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)){