Made S5 view publically viewable for published webs.
Added an S5 view link to the bottom of the published view page.
This commit is contained in:
parent
12743280fb
commit
e2b93c9e29
3 changed files with 19 additions and 2 deletions
|
@ -190,7 +190,8 @@ class ApplicationController < ActionController::Base
|
|||
@web.nil? or
|
||||
@web.password.nil? or
|
||||
cookies[CGI.escape(@web_name)] == @web.password or
|
||||
password_check(@params['password'])
|
||||
password_check(@params['password']) or
|
||||
(@web.published? and action_name == 's5')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue