updated featurecreep

This commit is contained in:
konrad 2018-09-04 19:54:15 +02:00 committed by kolaente
parent 245259216f
commit 422662e3e1
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
3 changed files with 7 additions and 2 deletions

View file

@ -136,7 +136,6 @@ Teams sind global, d.h. Ein Team kann mehrere Namespaces verwalten.
* [ ] Mit anderen Nutzern * [ ] Mit anderen Nutzern
// TODO: bei canRead/etc die Einträge beachten // TODO: bei canRead/etc die Einträge beachten
* [ ] Namespaces * [ ] Namespaces
* [ ] Teams
* [x] Teams * [x] Teams
* [ ] Mit Link * [ ] Mit Link
* [ ] Offen * [ ] Offen

View file

@ -5,7 +5,7 @@ Authorization: Bearer {{auth_token}}
### ###
# Get one list # Get one list
GET http://localhost:8080/api/v1/lists/10 GET http://localhost:8080/api/v1/lists/13
Authorization: Bearer {{auth_token}} Authorization: Bearer {{auth_token}}
### ###

View file

@ -7,6 +7,8 @@ func (l *List) IsAdmin(user *User) bool {
return true return true
} }
// Check individual rights
return l.checkListTeamRight(user, TeamRightAdmin) return l.checkListTeamRight(user, TeamRightAdmin)
} }
@ -17,6 +19,8 @@ func (l *List) CanWrite(user *User) bool {
return true return true
} }
// Check individual rights
// Admins always have write access // Admins always have write access
if l.IsAdmin(user) { if l.IsAdmin(user) {
return true return true
@ -32,6 +36,8 @@ func (l *List) CanRead(user *User) bool {
return true return true
} }
// Check individual rights
// Admins always have read access // Admins always have read access
if l.IsAdmin(user) { if l.IsAdmin(user) {
return true return true