updated featurecreep
This commit is contained in:
parent
245259216f
commit
422662e3e1
3 changed files with 7 additions and 2 deletions
|
|
@ -7,6 +7,8 @@ func (l *List) IsAdmin(user *User) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// Check individual rights
|
||||
|
||||
return l.checkListTeamRight(user, TeamRightAdmin)
|
||||
}
|
||||
|
||||
|
|
@ -17,6 +19,8 @@ func (l *List) CanWrite(user *User) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// Check individual rights
|
||||
|
||||
// Admins always have write access
|
||||
if l.IsAdmin(user) {
|
||||
return true
|
||||
|
|
@ -32,6 +36,8 @@ func (l *List) CanRead(user *User) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// Check individual rights
|
||||
|
||||
// Admins always have read access
|
||||
if l.IsAdmin(user) {
|
||||
return true
|
||||
|
|
|
|||
Reference in a new issue