discourse-scim/app/controllers/scim_v2/groups_controller.rb

22 lines
492 B
Ruby
Raw Normal View History

2024-10-07 10:22:23 +00:00
# frozen_string_literal: true
require "scimitar"
module Scim
class ScimV2::GroupsController < Scimitar::ActiveRecordBackedResourcesController
2024-10-10 08:28:13 +00:00
# TODO: Check why requires_plugin is not available here
2024-10-07 10:22:23 +00:00
# requires_plugin PLUGIN_NAME
protect_from_forgery with: :null_session
protected
def storage_class
Group
end
def storage_scope
Group.all # Or e.g. "User.where(is_deleted: false)" - whatever base scope you require
end
end
end