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
Commits
dd67432a
Commit
dd67432a
authored
3 months ago
by
Anusha Ranganathan
Browse files
Options
Downloads
Patches
Plain Diff
Remove crc_1280_member permission from group
parent
7a4aaa08
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!353
Remove crc_1280_member permission from group
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hyrax/lib/tasks/crc_1280_group_delete_permission.rake
+17
-0
17 additions, 0 deletions
hyrax/lib/tasks/crc_1280_group_delete_permission.rake
with
17 additions
and
0 deletions
hyrax/lib/tasks/crc_1280_group_delete_permission.rake
0 → 100644
+
17
−
0
View file @
dd67432a
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment