Skip to content

Commit

Permalink
Suppress AL0667 on ProfileSystemScope (#1296) (#1345)
Browse files Browse the repository at this point in the history
Fixes
[AB#538473](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/538473)

Co-authored-by: Quentin Tresontani <31541422+qutreson@users.noreply.github.com>
  • Loading branch information
SBalslev and qutreson authored Jun 17, 2024
1 parent 63a1b7a commit 8752081
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ codeunit 9175 "User Settings Impl."
ShouldRefreshSession := true;
sessionSetting.ProfileId := NewUserSettings."Profile ID";
sessionSetting.ProfileAppId := NewUserSettings."App ID";
#pragma warning disable AL0667
sessionSetting.ProfileSystemScope := NewUserSettings.Scope = NewUserSettings.Scope::System;
#pragma warning disable AL0667
end;

if OldUserSettings."Work Date" <> NewUserSettings."Work Date" then
Expand Down Expand Up @@ -537,7 +539,6 @@ codeunit 9175 "User Settings Impl."
TempAllProfile: Record "All Profile" temporary;
begin
PopulateProfiles(TempAllProfile);

if TempAllProfile.Get(UserPersonalization.Scope, UserPersonalization."App ID", UserPersonalization."Profile ID") then;
if Page.RunModal(Page::Roles, TempAllProfile) = Action::LookupOK then begin
UserPersonalization."Profile ID" := TempAllProfile."Profile ID";
Expand Down

0 comments on commit 8752081

Please sign in to comment.