Skip to content

Commit

Permalink
Stores access length with workspace for easier UI usage
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanStonebraker committed Dec 11, 2024
1 parent 271b5e5 commit 42890f0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
1 change: 0 additions & 1 deletion api/ws/handlers/user-management.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ func HandleReviewerMagicLinkLoginReq(req *protos.ReviewerMagicLinkLoginReq, hctx
return nil, err
}

// user.Info.ExpirationDateUnixSec
currentTime := time.Now().Unix()
if user.Info.ExpirationDateUnixSec > 0 && user.Info.ExpirationDateUnixSec < currentTime {
return nil, errors.New("user access has expired")
Expand Down
2 changes: 1 addition & 1 deletion data-formats
57 changes: 35 additions & 22 deletions generated-protos/screen-configuration.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 42890f0

Please sign in to comment.