Skip to content

Commit

Permalink
remove the last reason for Elektra to have cloud_resource_admin permi…
Browse files Browse the repository at this point in the history
…ssions
  • Loading branch information
majewsky committed Sep 12, 2024
1 parent 9b30a29 commit 666a7e5
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ def create
if @project.save
audit_logger.info(current_user, "has created", @project)

if services.available?(:resource_management)
# discover newly created projects
# use cloud_admin because domain resource admin role is required for this call
# rescue in case an exception happens so that the rest of the action is performed
begin
cloud_admin.resource_management.discover_projects(
@scoped_domain_id,
)
rescue StandardError
nil
end
end

flash.now[:notice] = "Project #{@project.name} successfully created."
if @inquiry
if @inquiry.requester && @inquiry.requester.uid
Expand Down

0 comments on commit 666a7e5

Please sign in to comment.