-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect role max duration when request does not set it (#51467)
* Respect role max duration when request does not set it * Update lib/services/access_request_test.go Co-authored-by: Pawel Kopiczko <[email protected]> * Update lib/services/access_request.go Co-authored-by: Pawel Kopiczko <[email protected]> * Add test for max_duration when a requesting user has multiple roles * Refactor max duration calculation to be clearer * Fix typo --------- Co-authored-by: Pawel Kopiczko <[email protected]>
- Loading branch information
1 parent
af77efb
commit 46b23ce
Showing
2 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters