Zugriff Redakteur, Kundenhoheit API

This commit is contained in:
Kevin Adametz 2022-01-04 11:17:07 +01:00
parent 570d428b1c
commit 3f1fb9377d
13 changed files with 109 additions and 61 deletions

View file

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