X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=GroupCountries.php;h=fdd8fca9f78d43656c164faae8545e0ba0f5de10;hb=refs%2Fheads%2Fmaster;hp=f8480c3104447a65ccf97b96a73e5d65a446c546;hpb=adaf207cf7aebf8f85f16951471785a9d1f7b130;p=Pman.Core diff --git a/GroupCountries.php b/GroupCountries.php index f8480c31..fdd8fca9 100644 --- a/GroupCountries.php +++ b/GroupCountries.php @@ -15,7 +15,7 @@ class Pman_Core_GroupCountries 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') { $this->jerr("Permission Denied" ); @@ -24,12 +24,12 @@ class Pman_Core_GroupCountries extends Pman return true; } - function get() + function get($v, $opts=array()) { - $this->post(); + $this->post($v); } - function post() + function post($v) { if (!$this->hasPerm( 'Core.Groups','E')) { // editing groups.. $this->jerr("PERMISSION DENIED");