mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 19:38:11 +00:00
[Bug Fix] Adding Check for SP During User Role Assignment. (#1497)
* Adding check for SP during user role assignment. * Fixing formatting. * Fixing condition. * Update src/deployment/deploy.py Co-authored-by: Cheick Keita <kcheick@gmail.com> * Formatting. Co-authored-by: Cheick Keita <kcheick@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ebb9b01895
commit
5e3d915dc7
@ -613,6 +613,9 @@ class Client:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def assign_user_access(self) -> None:
|
def assign_user_access(self) -> None:
|
||||||
|
if self.upgrade:
|
||||||
|
logger.info("Upgrading: Skipping assignment of current user to app role")
|
||||||
|
return
|
||||||
logger.info("assinging user access to service principal")
|
logger.info("assinging user access to service principal")
|
||||||
app = get_application(
|
app = get_application(
|
||||||
display_name=self.application_name,
|
display_name=self.application_name,
|
||||||
|
Reference in New Issue
Block a user