call code iff user is logged in
call code iff user is logged in
Disable a route without having to comment out the entry in the routes file.
Disable a route without having to comment out the entry in the routes file. Useful for when we want to keep the code around but we don't want users to have access to it.
call code if user has right permission for resource
call code if user has right permission for resource
Use when you want to require the user to be logged in on a private server or the server is public.
Use when you want to require the user to be logged in on a private server or the server is public.
call code if user is a server admin
call code if user is a server admin
get user if logged in
get user if logged in
Collection.
Utility method to modify the elements in a collection that are encoded when submitted and stored.
Utility method to modify the elements in a collection that are encoded when submitted and stored. These elements are decoded when a view requests the objects, so that they can be human readable.
Currently, the following collection elements are encoded:
name description
Return user based on request object
Return user based on request object
List collections.
String name of the Space such as 'Project space' etc.
String name of the Space such as 'Project space' etc. parsed from conf/messages
Controller flow to create a new collection.
Controller flow to create a new collection. Takes two parameters, name, a String, and description, a String. On success, the browser is redirected to the new collection's page. On error, it is redirected back to the dataset creation page with the appropriate error to be displayed.
Show all users with access to a collection (identified by its id)