projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3f7b75
)
GroupCountries.php
author
Chris
<chris@roojs.com>
Tue, 18 Mar 2014 13:44:58 +0000
(21:44 +0800)
committer
Chris
<chris@roojs.com>
Tue, 18 Mar 2014 13:44:58 +0000
(21:44 +0800)
GroupCountries.php
patch
|
blob
|
history
diff --git
a/GroupCountries.php
b/GroupCountries.php
index
e22a0e2
..
fbdc691
100644
(file)
--- a/
GroupCountries.php
+++ b/
GroupCountries.php
@@
-11,6
+11,25
@@
class Pman_Core_GroupCountries extends Pman
{
//put your code here
-
+ function getAuth() {
+ parent::getAuth(); // load company!
+ $au = $this->getAuthUser();
+ if (!$au) {
+ $this->jerr("Not authenticated", array('authFailure' => true));
+ }
+ if ($au->company()->comptype != 'OWNER') {
+ $this->jerr("Permission Denied" );
+ }
+ $this->authUser = $au;
+ return true;
+ }
+ function get()
+ {
+ $this->post();
+ }
+ function post()
+ {
+
+ }
}