Restore enums, replace one to enforce php 8.1 compatibility.

This commit is contained in:
James Cole
2022-04-13 16:27:01 +02:00
parent 71d53fbda4
commit cfcf860438
7 changed files with 76 additions and 20 deletions

View File

@@ -53,6 +53,16 @@ use Illuminate\Support\Carbon;
*/
class UserRole extends Model
{
public const CHANGE_PIGGY_BANKS = 'change_piggies';
public const CHANGE_REPETITIONS = 'change_reps';
public const CHANGE_RULES = 'change_rules';
public const CHANGE_TRANSACTIONS = 'change_tx';
public const FULL = 'full';
public const OWNER = 'owner';
public const READ_ONLY = 'ro';
public const VIEW_REPORTS = 'view_reports';
protected $fillable = ['title'];
/**