This commit is contained in:
sylor_huang@126.com
2020-08-12 10:58:16 +08:00
parent 54b1af8d06
commit d80600a58c
5 changed files with 6 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ class ProjectsController < ApplicationController
end
def project_public?
return if @project.is_public
return if @project.is_public?
if current_user
return if current_user.admin? || @project.member?(current_user.id)