1
0

updated featurecreep

This commit is contained in:
konrad
2018-09-04 19:54:15 +02:00
committed by kolaente
parent 245259216f
commit 422662e3e1
3 changed files with 7 additions and 2 deletions

View File

@ -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