Sha256: 160f8187f739f38ed3246b9dc696fbb19216857c215fb1ed2adb69ca65a26220
Contents?: true
Size: 391 Bytes
Versions: 51
Compression:
Stored size: 391 Bytes
Contents
require 'scrivito/child_list_tag' require 'fiona7/permitted_mixin' module Scrivito class ChildListTag include Fiona7::PermittedMixin private # add permission checking def user_present? view.scrivito_user.present? && (permitted?(view.scrivito_user.id, obj.id, :root) || permitted?(view.scrivito_user.id, obj.id, :create_children)) end end end
Version data entries
51 entries across 51 versions & 1 rubygems