mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
37
server/config/policies.js
Normal file
37
server/config/policies.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
/**
|
||||
* Policy Mappings
|
||||
* (sails.config.policies)
|
||||
*
|
||||
* Policies are simple functions which run **before** your actions.
|
||||
*
|
||||
* For more information on configuring policies, check out:
|
||||
* https://sailsjs.com/docs/concepts/policies
|
||||
*/
|
||||
|
||||
module.exports.policies = {
|
||||
/***************************************************************************
|
||||
* *
|
||||
* Default policy for all controllers and actions, unless overridden. *
|
||||
* (`true` allows public access) *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
'*': 'is-authenticated',
|
||||
|
||||
'users/index': ['is-authenticated', 'is-admin'],
|
||||
'users/create': ['is-authenticated', 'is-admin'],
|
||||
'users/delete': ['is-authenticated', 'is-admin'],
|
||||
|
||||
'projects/create': ['is-authenticated', 'is-admin'],
|
||||
'projects/update': ['is-authenticated', 'is-admin'],
|
||||
'projects/delete': ['is-authenticated', 'is-admin'],
|
||||
|
||||
'project-memberships/create': ['is-authenticated', 'is-admin'],
|
||||
'project-memberships/delete': ['is-authenticated', 'is-admin'],
|
||||
|
||||
'boards/create': ['is-authenticated', 'is-admin'],
|
||||
'boards/update': ['is-authenticated', 'is-admin'],
|
||||
'boards/delete': ['is-authenticated', 'is-admin'],
|
||||
|
||||
'access-tokens/create': true,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue