mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-29 04:10:09 +08:00
62342433f4
Also adde draw.io to attribution list. Closes #649
18 lines
376 B
PHP
18 lines
376 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');
|
|
}
|
|
}
|