equal
deleted
inserted
replaced
131 { |
131 { |
132 return ( $this->obj->aumodel->getRefId('aurole', $role_name) == $this->obj->aumodel->userInfo($this->getSessionId(), 'role_id') ); |
132 return ( $this->obj->aumodel->getRefId('aurole', $role_name) == $this->obj->aumodel->userInfo($this->getSessionId(), 'role_id') ); |
133 } |
133 } |
134 |
134 |
135 /* |
135 /* |
|
136 * Return TRUE if user has specified role |
|
137 */ |
|
138 function getUserName($userid) |
|
139 { |
|
140 return $this->obj->aumodel->userInfo($userid, 'name'); |
|
141 } |
|
142 |
|
143 /* |
136 * Show "deny access" page |
144 * Show "deny access" page |
137 */ |
145 */ |
138 function denyAccess() |
146 function denyAccess() |
139 { |
147 { |
140 $this->obj->load->helper('url'); |
148 $this->obj->load->helper('url'); |