Change dhow editable settings are defined

This commit is contained in:
Henry Whitaker
2020-07-07 21:51:53 +01:00
parent 817e06aa12
commit ea14888f38
4 changed files with 21 additions and 16 deletions

View File

@@ -17,11 +17,4 @@ class Setting extends Model
];
protected $table = 'settings';
protected $attributes = [ 'editable' ];
public function getEditableAttribute()
{
return SettingsHelper::settingIsEditable($this->name);
}
}