mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 05:43:40 +08:00
19 lines
377 B
PHP
19 lines
377 B
PHP
<?php namespace BookStack;
|
|
|
|
|
|
class EntityPermission 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('restrictable');
|
|
}
|
|
}
|