]> BookStack Code Mirror - bookstack/blob - app/EntityPermission.php
Removes some unused code.
[bookstack] / app / EntityPermission.php
1 <?php namespace BookStack;
2
3
4 class EntityPermission extends Model
5 {
6
7     protected $fillable = ['role_id', 'action'];
8     public $timestamps = false;
9
10     /**
11      * Get all this restriction's attached entity.
12      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
13      */
14     public function restrictable()
15     {
16         return $this->morphTo('restrictable');
17     }
18 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.