* Add boolean field "disable activity checks" to role, check for this field inside PilotLeave-Check, add tests * fix checkbox on form * CS fixes * CS fixes again :-) Co-authored-by: Andreas Palm <ap@ewsp.de>
This commit is contained in:
@@ -5,6 +5,12 @@ namespace App\Models;
|
||||
use Laratrust\Models\LaratrustRole;
|
||||
|
||||
/**
|
||||
* @property int id
|
||||
* @property string name
|
||||
* @property string display_name
|
||||
* @property bool read_only
|
||||
* @property bool disable_activity_checks
|
||||
*
|
||||
* @mixin \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
class Role extends LaratrustRole
|
||||
@@ -14,10 +20,12 @@ class Role extends LaratrustRole
|
||||
'name',
|
||||
'display_name',
|
||||
'read_only',
|
||||
'disable_activity_checks',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'read_only' => 'boolean',
|
||||
'read_only' => 'boolean',
|
||||
'disable_activity_checks' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user