mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 10:36:05 +01:00 
			
		
		
		
	Separate Authenticators to the trait from ControllerBase.
This commit is contained in:
		| @@ -1,12 +1,15 @@ | ||||
| package app | ||||
|  | ||||
| import service._ | ||||
| import util.OwnerOnlyAuthenticator | ||||
| import jp.sf.amateras.scalatra.forms._ | ||||
|  | ||||
| class SettingsController extends SettingsControllerBase with RepositoryService with AccountService | ||||
| class SettingsController extends SettingsControllerBase | ||||
|   with RepositoryService with AccountService with OwnerOnlyAuthenticator | ||||
|  | ||||
|  | ||||
| trait SettingsControllerBase extends ControllerBase { self: RepositoryService with AccountService => | ||||
| trait SettingsControllerBase extends ControllerBase { | ||||
|   self: RepositoryService with AccountService with OwnerOnlyAuthenticator => | ||||
|  | ||||
|   case class CollaboratorForm(userName: String) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user