Zugriff Redakteur, Kundenhoheit API
This commit is contained in:
parent
570d428b1c
commit
3f1fb9377d
13 changed files with 109 additions and 61 deletions
18
app/User.php
18
app/User.php
|
|
@ -220,12 +220,22 @@ class User extends Authenticatable
|
|||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isCopyReader()
|
||||
{
|
||||
if($this->admin >= 1){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isAdmin()
|
||||
{
|
||||
if($this->admin >= 1){
|
||||
if($this->admin >= 7){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -236,7 +246,7 @@ class User extends Authenticatable
|
|||
*/
|
||||
public function isSuperAdmin()
|
||||
{
|
||||
if($this->admin >= 2){
|
||||
if($this->admin >= 8){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -247,7 +257,7 @@ class User extends Authenticatable
|
|||
*/
|
||||
public function isSySAdmin()
|
||||
{
|
||||
if($this->admin >= 3){
|
||||
if($this->admin >= 9){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -258,7 +268,7 @@ class User extends Authenticatable
|
|||
*/
|
||||
public function isApiUser()
|
||||
{
|
||||
if($this->admin >= 4){
|
||||
if($this->admin >= 10){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue