01 2020
This commit is contained in:
parent
bed91c4f4a
commit
c8948338bb
122 changed files with 7911 additions and 1639 deletions
11
app/User.php
11
app/User.php
|
|
@ -160,6 +160,17 @@ class User extends Authenticatable
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isSySAdmin()
|
||||
{
|
||||
if($this->admin >= 3){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
private function setPermissionsDefault(){
|
||||
$groups = config('permissions.groups');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue