-
Notifications
You must be signed in to change notification settings - Fork 5
Restricting Items
terrellt edited this page Oct 27, 2014
·
1 revision
This is TEMPORARY until https://github.com/OregonDigital/oregondigital/issues/657 is closed
Add a new role or IP range to the "Roles" interface if appropriate.
This work will be undone after the item is reviewed and will have to be repeated - reviewing makes an item "public"
i = ActiveFedora::Base.find(pid).adapt_to_cmodel
i.read_groups = i.read_groups - ["public"]
i.read_groups |= ["University-of-Oregon"] # Appropriate role from Roles interface.
i.save
That should be it!