mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Issue #238 - disabled form when category creation is not an option.
This commit is contained in:
parent
a8fc30016c
commit
18e0d21024
@ -222,11 +222,23 @@ class media_cat_ui extends e_admin_ui
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!varset($this->fields['media_cat_owner']['writeParms']))
|
||||
{
|
||||
$this->fields['media_cat_owner']['writeParms'] = array('', '');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function createPage()
|
||||
{
|
||||
if(!count($this->fields['media_cat_owner']['writeParms']))
|
||||
{
|
||||
e107::getMessage()->addInfo("Category creation not available.");
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->getUI()->getCreate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function beforeCreate($new_data)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user