updated featurecreep
This commit is contained in:
parent
245259216f
commit
422662e3e1
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue