summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/projects/shared/permissions/constants.js
blob: ac0dca31c3734f68a6f1a956913d7d226a97dc1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { __ } from '~/locale';

export const visibilityOptions = {
  PRIVATE: 0,
  INTERNAL: 10,
  PUBLIC: 20,
};

export const visibilityLevelDescriptions = {
  [visibilityOptions.PRIVATE]: __(
    'The project is accessible only by members of the project. Access must be granted explicitly to each user.',
  ),
  [visibilityOptions.INTERNAL]: __('The project can be accessed by any user who is logged in.'),
  [visibilityOptions.PUBLIC]: __(
    'The project can be accessed by anyone, regardless of authentication.',
  ),
};