diff --git a/app/controllers/my_module_repository_snapshots_controller.rb b/app/controllers/my_module_repository_snapshots_controller.rb index 2ec3538c6..22ee0d482 100644 --- a/app/controllers/my_module_repository_snapshots_controller.rb +++ b/app/controllers/my_module_repository_snapshots_controller.rb @@ -35,7 +35,8 @@ class MyModuleRepositorySnapshotsController < ApplicationController render json: { html: render_to_string(partial: 'my_modules/repositories/full_view_version', - locals: { repository_snapshot: repository_snapshot }) + locals: { repository_snapshot: repository_snapshot, + can_delete_snapshot: can_manage_module?(@my_module) }) } end @@ -48,7 +49,8 @@ class MyModuleRepositorySnapshotsController < ApplicationController def show render json: { html: render_to_string(partial: 'my_modules/repositories/full_view_version', - locals: { repository_snapshot: @repository_snapshot }) + locals: { repository_snapshot: @repository_snapshot, + can_delete_snapshot: can_manage_module?(@my_module) }) } end