Skip to content

Commit

Permalink
Missing Initialized=true and catching tryfunction result
Browse files Browse the repository at this point in the history
  • Loading branch information
darjoo committed Feb 16, 2024
1 parent 23930c0 commit 187572f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ codeunit 9034 "Azure AD User Subscribers"
begin
if Initialized then
exit;
Initialized := true;

IsAdmin := AzureADGraphUser.IsUserDelegatedAdmin() or AzureADPlan.IsPlanAssignedToUser(PlanIds.GetGlobalAdminPlanId()) or AzureADPlan.IsPlanAssignedToUser(PlanIds.GetD365AdminPlanId());
IsAzure := UserAccountHelper.IsAzure();
if IsAzure then
TryGetCountryCode();
if TryGetCountryCode() then;
end;

[TryFunction]
Expand Down

0 comments on commit 187572f

Please sign in to comment.