Merge pull request '去掉冗余判定' (#324) from KingChan/forgeplus:standalone_develop into standalone_develop
This commit is contained in:
		
						commit
						13d2c3e46c
					
				| 
						 | 
					@ -56,7 +56,6 @@ class SitePagesController < ApplicationController
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        project = Project.find_by(identifier: params[:repository][:name],user_id: user.id)
 | 
					        project = Project.find_by(identifier: params[:repository][:name],user_id: user.id)
 | 
				
			||||||
        return normal_status(-1, '项目不存在') if project.nil?
 | 
					        return normal_status(-1, '项目不存在') if project.nil?
 | 
				
			||||||
        return normal_status(-1, '你没有权限操作') if project.owner?(user)
 | 
					 | 
				
			||||||
        return normal_status(-1, '该仓库还未开通Page服务,无法进行部署') if Page.exists?(user: user, project: project)
 | 
					        return normal_status(-1, '该仓库还未开通Page服务,无法进行部署') if Page.exists?(user: user, project: project)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        @page = Page.find_by(user: user, project: project)
 | 
					        @page = Page.find_by(user: user, project: project)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue