diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-04 22:32:36 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-04 22:33:38 +0200 |
commit | 9bd2662976a75d3b03364cdbe6419e57c80f99a6 (patch) | |
tree | 0b5289660f843a8ba7f13aa79d458f53c94b36d9 /server/initializers/constants.js | |
parent | e4c556196d7b31111f17596840d2e1d60caa7dcb (diff) | |
download | PeerTube-9bd2662976a75d3b03364cdbe6419e57c80f99a6.tar.gz PeerTube-9bd2662976a75d3b03364cdbe6419e57c80f99a6.tar.zst PeerTube-9bd2662976a75d3b03364cdbe6419e57c80f99a6.zip |
Implement user API (create, update, remove, list)
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 5f4aeccc6..416356400 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -72,6 +72,11 @@ const THUMBNAILS_SIZE = '200x110' | |||
72 | // Path for access to thumbnails with express router | 72 | // Path for access to thumbnails with express router |
73 | const THUMBNAILS_STATIC_PATH = '/static/thumbnails' | 73 | const THUMBNAILS_STATIC_PATH = '/static/thumbnails' |
74 | 74 | ||
75 | const USER_ROLES = { | ||
76 | ADMIN: 'admin', | ||
77 | USER: 'user' | ||
78 | } | ||
79 | |||
75 | // Special constants for a test instance | 80 | // Special constants for a test instance |
76 | if (isTestInstance() === true) { | 81 | if (isTestInstance() === true) { |
77 | FRIEND_SCORE.BASE = 20 | 82 | FRIEND_SCORE.BASE = 20 |
@@ -96,7 +101,8 @@ module.exports = { | |||
96 | SEEDS_IN_PARALLEL: SEEDS_IN_PARALLEL, | 101 | SEEDS_IN_PARALLEL: SEEDS_IN_PARALLEL, |
97 | SORTABLE_COLUMNS: SORTABLE_COLUMNS, | 102 | SORTABLE_COLUMNS: SORTABLE_COLUMNS, |
98 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, | 103 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, |
99 | THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH | 104 | THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH, |
105 | USER_ROLES: USER_ROLES | ||
100 | } | 106 | } |
101 | 107 | ||
102 | // --------------------------------------------------------------------------- | 108 | // --------------------------------------------------------------------------- |