- Edited
PHP Fatal error: Call to a member function hasPerm() on a non-object in /var/www/vhosts/xxxxx/httpdocs/include/class.staff.php on line 457But I can access http://xxxx/scp/staff.php , /emails.php, /settings.php etc, normally.Line 457 in bold: function hasPerm($perm, $global=true) { if ($global) return $this->getPermission()->has($perm); if ($this->getRole()->hasPerm($perm)) return true; foreach ($this->dept_access as $da) if ($da->role->hasPerm($perm)) return true; return false; }