Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Merge requests
!353
Remove crc_1280_member permission from group
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove crc_1280_member permission from group
feature/406_adapt_group_auth
into
develop
Overview
3
Commits
2
Pipelines
2
Changes
1
All threads resolved!
Show all comments
Merged
Anusha Ranganathan
requested to merge
feature/406_adapt_group_auth
into
develop
4 months ago
Overview
3
Commits
2
Pipelines
2
Changes
1
All threads resolved!
Show all comments
Expand
fixes
https://gitlab.ruhr-uni-bochum.de/FDM/rdm-system/antleaf-projectmanagement/-/issues/406
Edited
3 months ago
by
Anusha Ranganathan
0
0
Merge request reports
Compare
develop
version 1
0bac4d0d
4 months ago
develop (base)
and
version 1
latest version
a641e59a
2 commits,
3 months ago
version 1
0bac4d0d
1 commit,
4 months ago
1 file
+
17
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
hyrax/lib/tasks/crc_1280_group_delete_permission.rake
0 → 100644
+
17
−
0
Options
namespace
:rdms
do
namespace
:crc_1280_group
do
task
:delete_crc_member_permission
,
[
:group_id
]
=>
:environment
do
|
task
,
args
|
group
=
Collection
.
find
(
args
.
group_id
)
unless
group
.
present?
abort
(
"ERROR: Cannot find group
#{
args
.
group_id
}
"
)
end
if
group
.
crc_collection_type
!=
group
abort
(
"ERROR:
#{
args
.
group_id
}
is not of type group"
)
end
puts
"Deleting crc_1280_member permission for group
#{
args
.
group_id
}
"
permission_template
=
group
.
permission_template
access_grant
=
permission_template
.
access_grants
.
where
(
agent_id:
"crc_1280_member"
).
first
access_grant
.
destroy
if
access_grant
.
present?
end
end
end
Loading