2017-02-06 16:58:05 +00:00
|
|
|
%fieldset
|
|
|
|
%legend Access
|
2018-06-05 14:16:31 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :projects_limit
|
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control'
|
2017-02-06 16:58:05 +00:00
|
|
|
|
2018-06-05 14:16:31 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :can_create_group
|
|
|
|
.col-sm-10
|
|
|
|
= f.check_box :can_create_group
|
2017-02-06 16:58:05 +00:00
|
|
|
|
2018-06-05 14:16:31 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :access_level
|
2017-02-06 21:38:08 +00:00
|
|
|
.col-sm-10
|
2017-02-06 23:19:37 +00:00
|
|
|
- editing_current_user = (current_user == @user)
|
|
|
|
|
|
|
|
= f.radio_button :access_level, :regular, disabled: editing_current_user
|
2019-07-25 15:51:48 +00:00
|
|
|
= f.label :access_level_regular, class: 'font-weight-bold' do
|
2017-02-06 21:38:08 +00:00
|
|
|
Regular
|
|
|
|
%p.light
|
|
|
|
Regular users have access to their groups and projects
|
2017-02-06 23:19:37 +00:00
|
|
|
|
2019-05-16 12:12:41 +00:00
|
|
|
= render_if_exists 'admin/users/auditor_access_level_radio', f: f, disabled: editing_current_user
|
|
|
|
|
2017-02-06 23:19:37 +00:00
|
|
|
= f.radio_button :access_level, :admin, disabled: editing_current_user
|
2019-07-25 15:51:48 +00:00
|
|
|
= f.label :access_level_admin, class: 'font-weight-bold' do
|
2017-02-06 21:38:08 +00:00
|
|
|
Admin
|
|
|
|
%p.light
|
|
|
|
Administrators have access to all groups, projects and users and can manage all features in this installation
|
2017-02-06 23:19:37 +00:00
|
|
|
- if editing_current_user
|
|
|
|
%p.light
|
|
|
|
You cannot remove your own admin rights.
|
2017-02-06 16:58:05 +00:00
|
|
|
|
2018-06-05 14:16:31 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :external
|
2018-08-30 12:53:06 +00:00
|
|
|
.hidden{ data: user_internal_regex_data }
|
2017-02-06 23:19:37 +00:00
|
|
|
.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-08-30 12:53:06 +00:00
|
|
|
%row.hidden#warning_external_automatically_set.hidden
|
|
|
|
.badge.badge-warning.text-white
|
|
|
|
= _('Automatically marked as default internal user')
|