X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=GroupRights.php;h=6275f2c2a8189e7dd40153a22665b04cd77baf16;hp=ea3e4124a1a276a723d0a54a3469a9fde56137d4;hb=HEAD;hpb=b7e60b65dad013dd963d66ae6698a11a1fd33a07 diff --git a/GroupRights.php b/GroupRights.php index ea3e412..0dbd455 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -12,7 +12,7 @@ class Pman_Admin_GroupRights extends Pman parent::getAuth(); // load company! $au = $this->getAuthUser(); if (!$au) { - $this->jerr("Not authenticated", array('authFailure' => true)); + $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true)); } if ($au->company()->comptype !='OWNER') { @@ -87,6 +87,7 @@ class Pman_Admin_GroupRights extends Pman ); } + if (isset($_GET['_sort'])) { foreach ($ar as $key => $row) { $shortname[$key] = $row['shortname']; @@ -95,6 +96,7 @@ class Pman_Admin_GroupRights extends Pman array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar); } + $this->jdata($ar);