mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
29 lines
685 B
JavaScript
29 lines
685 B
JavaScript
/**
|
|
* 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/create': ['is-authenticated', 'is-admin'],
|
|
'users/delete': ['is-authenticated', 'is-admin'],
|
|
|
|
'projects/create': ['is-authenticated', 'is-admin'],
|
|
|
|
'show-config': true,
|
|
'access-tokens/create': true,
|
|
'access-tokens/exchange-using-oidc': true,
|
|
};
|