Method: Scrivito::UserDefinition#restrict_obj_publish
- Defined in:
- app/cms/scrivito/user_definition.rb
#restrict_obj_publish(options) {|attribute| ... } ⇒ Object
Note:
Lets you restrict a user’s capability to publish a specific CMS object. Each registered callback may refer to one attribute of an object. Multiple callbacks are possible.
199 200 201 |
# File 'app/cms/scrivito/user_definition.rb', line 199 def restrict_obj_publish(, &block) restriction_set.add(, &block) end |