FIX: fix permissions for publishing content pages

This commit is contained in:
Michal Kváček
2017-09-07 23:53:34 +02:00
parent 983efad9f0
commit e8cbc1b537
3 changed files with 71 additions and 4 deletions
+4
View File
@@ -87,6 +87,10 @@ class Content extends Model
*/
public function category()
{
if (!class_exists(Category::class)) {
throw new \ErrorException('Categories are not installed');
}
return $this->belongsTo(Category::class);
}