diff options
Diffstat (limited to 'app/services/personal_access_tokens/revoke_service.rb')
-rw-r--r-- | app/services/personal_access_tokens/revoke_service.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/services/personal_access_tokens/revoke_service.rb b/app/services/personal_access_tokens/revoke_service.rb index 16ba42bd317..17405002d8d 100644 --- a/app/services/personal_access_tokens/revoke_service.rb +++ b/app/services/personal_access_tokens/revoke_service.rb @@ -2,11 +2,12 @@ module PersonalAccessTokens class RevokeService - attr_reader :token, :current_user + attr_reader :token, :current_user, :group - def initialize(current_user = nil, params = { token: nil }) + def initialize(current_user = nil, params = { token: nil, group: nil }) @current_user = current_user @token = params[:token] + @group = params[:group] end def execute @@ -34,3 +35,5 @@ module PersonalAccessTokens end end end + +PersonalAccessTokens::RevokeService.prepend_if_ee('EE::PersonalAccessTokens::RevokeService') |