mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Update flag columns to BOOLEAN.
This commit is contained in:
@@ -193,7 +193,7 @@ trait WikiControllerBase extends ControllerBase {
|
||||
|
||||
def isWritable(owner: String, repository: String): Boolean = {
|
||||
context.loginAccount match {
|
||||
case Some(a) if(a.userType == AccountService.Administrator) => true
|
||||
case Some(a) if(a.isAdmin) => true
|
||||
case Some(a) if(a.userName == owner) => true
|
||||
case Some(a) if(getCollaborators(owner, repository).contains(a.userName)) => true
|
||||
case _ => false
|
||||
|
||||
Reference in New Issue
Block a user