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 iff user has right permission for resource
call code iff 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 iff user is a server admin
call code iff user is a server admin
get user if logged in
get user if logged in
REST endpoint: POST: edit a comment associated with a specific file
REST endpoint: POST: edit a comment associated with a specific file
The method takes a single arg:
id: A UUID that identifies the comment to be edited.
The data contained in the request body will contain data for the edit, stored in the following key-value pairs:
"commentText" -> The updated text to be used for the comment.
Only the owner of the comment will be allowed to edit it. Other requests will fail.
Return user based on request object
Return user based on request object
This will create an event in the specified user's feed indicating they were mentioned in a comment on the specified resource.
REST endpoint: DELETE: remove a comment associated with a specific file
REST endpoint: DELETE: remove a comment associated with a specific file
The method takes a single arg:
id: A UUID that identifies the comment to be removed.
The request body needs no data, so it should be empty.
Only the owner of a comment will be allowed to delete it. Any other request will fail.
Comments on datasets.