diff options
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r-- | lib/api/users.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 8b9b82877f7..cee09f60a2b 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -87,6 +87,7 @@ module API optional :created_before, type: DateTime, desc: 'Return users created before the specified time' optional :without_projects, type: Boolean, default: false, desc: 'Filters only users without projects' optional :exclude_internal, as: :non_internal, type: Boolean, default: false, desc: 'Filters only non internal users' + optional :admins, type: Boolean, default: false, desc: 'Filters only admin users' all_or_none_of :extern_uid, :provider use :sort_params @@ -745,8 +746,6 @@ module API optional :expires_at, type: Date, desc: 'The expiration date in the format YEAR-MONTH-DAY of the personal access token' end post feature_category: :authentication_and_authorization do - not_found! unless Feature.enabled?(:pat_creation_api_for_admin) - response = ::PersonalAccessTokens::CreateService.new( current_user: current_user, target_user: target_user, params: declared_params(include_missing: false) ).execute |