2017-08-17 22:00:37 +05:30
|
|
|
%fieldset
|
|
|
|
%legend Access
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2018-11-20 20:47:30 +05:30
|
|
|
.col-sm-2.text-right
|
|
|
|
= f.label :projects_limit, class: 'col-form-label'
|
2017-08-17 22:00:37 +05:30
|
|
|
.col-sm-10= f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control'
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2018-11-20 20:47:30 +05:30
|
|
|
.col-sm-2.text-right
|
|
|
|
= f.label :can_create_group, class: 'col-form-label'
|
2017-08-17 22:00:37 +05:30
|
|
|
.col-sm-10= f.check_box :can_create_group
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2018-11-20 20:47:30 +05:30
|
|
|
.col-sm-2.text-right
|
|
|
|
= f.label :access_level, class: 'col-form-label'
|
2017-08-17 22:00:37 +05:30
|
|
|
.col-sm-10
|
|
|
|
- editing_current_user = (current_user == @user)
|
|
|
|
|
|
|
|
= f.radio_button :access_level, :regular, disabled: editing_current_user
|
2018-11-08 19:23:39 +05:30
|
|
|
= label_tag :regular, class: 'font-weight-bold' do
|
2017-08-17 22:00:37 +05:30
|
|
|
Regular
|
|
|
|
%p.light
|
|
|
|
Regular users have access to their groups and projects
|
|
|
|
|
|
|
|
= f.radio_button :access_level, :admin, disabled: editing_current_user
|
2018-11-08 19:23:39 +05:30
|
|
|
= label_tag :admin, class: 'font-weight-bold' do
|
2017-08-17 22:00:37 +05:30
|
|
|
Admin
|
|
|
|
%p.light
|
|
|
|
Administrators have access to all groups, projects and users and can manage all features in this installation
|
|
|
|
- if editing_current_user
|
|
|
|
%p.light
|
|
|
|
You cannot remove your own admin rights.
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2018-11-20 20:47:30 +05:30
|
|
|
.col-sm-2.text-right
|
|
|
|
= f.label :external, class: 'col-form-label'
|
|
|
|
.hidden{ data: user_internal_regex_data }
|
2017-08-17 22:00:37 +05:30
|
|
|
.col-sm-10
|
|
|
|
= f.check_box :external do
|
|
|
|
External
|
|
|
|
%p.light
|
|
|
|
External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects or groups.
|
2018-11-20 20:47:30 +05:30
|
|
|
%row.hidden#warning_external_automatically_set.hidden
|
|
|
|
.badge.badge-warning.text-white
|
|
|
|
= _('Automatically marked as default internal user')
|