allow creation of resources within special concepts via showCreateResource option

This commit is contained in:
Helmut Merz 2014-03-31 10:48:37 +02:00
parent 40cc2c4079
commit ad30929cfb

View file

@ -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