mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Issue #238 - disabled form when category creation is not an option.
This commit is contained in:
@@ -222,12 +222,24 @@ class media_cat_ui extends e_admin_ui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!varset($this->fields['media_cat_owner']['writeParms']))
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function createPage()
|
||||||
{
|
{
|
||||||
$this->fields['media_cat_owner']['writeParms'] = array('', '');
|
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)
|
public function beforeCreate($new_data)
|
||||||
{
|
{
|
||||||
// XXX temporary disable when there is no owners, discuss
|
// XXX temporary disable when there is no owners, discuss
|
||||||
|
Reference in New Issue
Block a user