allow creation of resources within special concepts via showCreateResource option
This commit is contained in:
parent
40cc2c4079
commit
ad30929cfb
1 changed files with 2 additions and 0 deletions
|
@ -794,6 +794,8 @@ class BaseView(GenericView, I18NView):
|
||||||
|
|
||||||
def checkAction(self, name, category, target):
|
def checkAction(self, name, category, target):
|
||||||
if name in ('create_resource',):
|
if name in ('create_resource',):
|
||||||
|
if target is not None and target.options.showCreateResource:
|
||||||
|
return True
|
||||||
return not self.globalOptions('hideCreateResource')
|
return not self.globalOptions('hideCreateResource')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue