ad81ee2740
* feat: assign invalid pk and check * fix: only set flags if they don't exist * fix: userinfo not being set if data is available * minor cleanup Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
17 lines
195 B
Go
17 lines
195 B
Go
package flags
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"goauthentik.io/api/v3"
|
|
)
|
|
|
|
const InvalidUserPK = -1
|
|
|
|
type UserFlags struct {
|
|
UserInfo *api.User
|
|
UserPk int32
|
|
CanSearch bool
|
|
Session *http.Cookie
|
|
}
|