mirror of
https://github.com/documize/community.git
synced 2025-07-31 02:59:44 +02:00
parent
29d7307537
commit
3b76e10ee0
3 changed files with 37 additions and 5 deletions
|
@ -205,6 +205,7 @@ func (s Store) GetUserCategoryPermissions(ctx domain.RequestContext, userID stri
|
|||
|
||||
if err == sql.ErrNoRows {
|
||||
err = nil
|
||||
r = []permission.Permission{}
|
||||
}
|
||||
if err != nil {
|
||||
err = errors.Wrap(err, fmt.Sprintf("unable to execute select category permissions for user %s", userID))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue