mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Fix for show and create
This commit is contained in:
parent
a1fa0b4e05
commit
a407bf857f
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue