Make versions private for privacy reasons

This commit is contained in:
Ari Timonen 2014-06-10 13:34:43 +03:00
parent b27ef8c465
commit 1a02abbf5b

View file

@ -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