mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Auth: Add "node" and "portal" roles, refactor session entity #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -243,7 +243,7 @@ func checkUserPasscodeAuth(c *gin.Context, action acl.Permission) (*entity.Sessi
|
||||
uid := clean.UID(c.Param("uid"))
|
||||
|
||||
// Get user from session.
|
||||
user := s.User()
|
||||
user := s.GetUser()
|
||||
|
||||
// Regular users can only set up a passcode for their own account.
|
||||
if user.UserUID != uid || !user.CanLogIn() {
|
||||
|
||||
Reference in New Issue
Block a user