Fix panic in /preview/channel/{id}
This commit is contained in:
@@ -245,7 +245,7 @@ func (app *Application) getPermissions(ctx db.TxContext, hdr string) (models.Per
|
||||
|
||||
key := strings.TrimSpace(hdr[4:])
|
||||
|
||||
tok, err := app.Database.Primary.GetKeyTokenByToken(ctx, key)
|
||||
tok, err := app.Database.Primary.GetKeyTokenByTokenOpt(ctx, key)
|
||||
if err != nil {
|
||||
return models.PermissionSet{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user