Make sure to require admin rights when modifying list/namespace users to be consistent with teams
Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
parent
5e84ce639f
commit
4a70c81b33
4 changed files with 12 additions and 39 deletions
|
|
@ -43,5 +43,5 @@ func (lu *ListUser) canDoListUser(a web.Auth) (bool, error) {
|
|||
|
||||
// Get the list and check if the user has write access on it
|
||||
l := List{ID: lu.ListID}
|
||||
return l.CanWrite(a)
|
||||
return l.IsAdmin(a)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue