mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-29 12:40:44 +00:00
Make versions private for privacy reasons
This commit is contained in:
parent
b27ef8c465
commit
1a02abbf5b
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ class VersionsController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
raise AccessError unless cuser and cuser.admin?
|
||||
@version = @article.versions.find params[:id]
|
||||
@nobody = true
|
||||
render 'articles/version'
|
||||
|
@ -29,4 +30,4 @@ class VersionsController < ApplicationController
|
|||
def get_article
|
||||
@article = Article.find(params[:article_id])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue