form: don't display portfolio pickers if instructed to do so (#7182)
This commit is contained in:
parent
caf373d5ac
commit
72d2e60f7b
|
@ -4,6 +4,8 @@ from qommon.form import *
|
|||
class FileWithPreviewAndStrongboxWidget(FileWithPreviewWidget):
|
||||
def render_hint(self, hint):
|
||||
t = CompositeWidget.render_hint(self, hint)
|
||||
if not self.allow_portfolio_picking:
|
||||
return t
|
||||
root_url = get_publisher().get_root_url()
|
||||
if get_publisher().has_site_option('strongbox') and get_request().user and not self.preview:
|
||||
get_response().add_javascript(['../../aq/js/strongbox.js'])
|
||||
|
|
Reference in New Issue