Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge pull request #16411 from opf/implementation/55975-use-authentication-in-set_permission_command

Eric Schubert777f0dba7272
diff --cc modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rb
index 53377c3ab9d,1389fac5e5c..113b1124a62
--- a/modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rb
+++ b/modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rb
@@@ -203,15 -203,12 +203,16 @@@ module Storage
@storage.project_storages.active.automatic
end
- def client_tokens_scope = OAuthClientToken.where(oauth_client: @storage.oauth_client)
+ def client_remote_identities_scope
+ RemoteIdentity.includes(:user).where(oauth_client: @storage.oauth_client)
+ end
- def admin_client_tokens_scope = OAuthClientToken.where(oauth_client: @storage.oauth_client, user: User.admin.active)
+ def admin_remote_identities_scope
+ RemoteIdentity.includes(:user).where(oauth_client: @storage.oauth_client, user: User.admin.active)
+ end
def root_folder = Peripherals::ParentFolder.new("/")
+
def auth_strategy = userless.call
# @param attribute [Symbol] attribute to which the error will be tied to