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
noud 2012-11-08 15:28:21 +01:00
parent c722205ddf
commit 4cc6b8055f
1 changed files with 1 additions and 1 deletions

View File

@ -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;