Hi, It's weird, Error breaks opening the page, so this shouldn't happen.
Are you using Message? not Error?
Test Video:
[View:/cfs-file/__key/communityserver-discussions-components-files/758/Test06240828.mp4:1024:768
pageextension 50100 MyExtension5 extends "Advanced Settings"
{
trigger OnOpenPage()
var
UserPermissions: Codeunit "User Permissions";
begin
if not UserPermissions.IsSuper(UserSecurityId()) then
Error('Only super user can open Advanced Settings!');
end;
}
Hope this helps.
Thanks.
ZHU