mirror of https://github.com/MISP/MISP
RBAC
now should be okay on the checkGroup. (mind, we have a PHP 5.3.10 (dev) and 5.2.10 (f.a.) difference. for CakePHP should be php > 5.2.8, pear > 1.9.0 and phpunit 3.5.0)pull/63/head
parent
c722205ddf
commit
4cc6b8055f
|
@ -362,7 +362,7 @@ class AppController extends Controller {
|
|||
public function checkGroup() {
|
||||
$modifyGroup = false;
|
||||
$user = ClassRegistry::init('User')->findById($this->Auth->user('id'));
|
||||
if (isset($user)) {
|
||||
if (isset($user['User'])) {
|
||||
$group = ClassRegistry::init('Group')->findById($user['User']['group_id']);
|
||||
if ($group['Group']['perm_modify_org']) {
|
||||
$modifyGroup = true;
|
||||
|
|
Loading…
Reference in New Issue