mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-02-06 08:21:30 +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
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
raise AccessError unless cuser and cuser.admin?
|
||||||
@version = @article.versions.find params[:id]
|
@version = @article.versions.find params[:id]
|
||||||
@nobody = true
|
@nobody = true
|
||||||
render 'articles/version'
|
render 'articles/version'
|
||||||
|
@ -29,4 +30,4 @@ class VersionsController < ApplicationController
|
||||||
def get_article
|
def get_article
|
||||||
@article = Article.find(params[:article_id])
|
@article = Article.find(params[:article_id])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue