FIX: fix permissions for publishing content pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user