summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/protected_branches/constants.js
blob: ae5eaa8e6221a9f8af855142e263fe5149876111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export const ACCESS_LEVELS = {
  MERGE: 'merge_access_levels',
  PUSH: 'push_access_levels',
};

export const LEVEL_TYPES = {
  ROLE: 'role',
  USER: 'user',
  GROUP: 'group',
  DEPLOY_KEY: 'deploy_key',
};

export const LEVEL_ID_PROP = {
  ROLE: 'access_level',
  USER: 'user_id',
  GROUP: 'group_id',
  DEPLOY_KEY: 'deploy_key_id',
};

export const ACCESS_LEVEL_NONE = 0;