mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 05:36:00 +00:00
59367b3417
Worked around slower eloquent access to speed up permission generation.
19 lines
358 B
PHP
19 lines
358 B
PHP
<?php namespace BookStack;
|
|
|
|
|
|
class Restriction extends Model
|
|
{
|
|
|
|
protected $fillable = ['role_id', 'action'];
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* Get all this restriction's attached entity.
|
|
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
|
|
*/
|
|
public function restrictable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|