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