OverviewExamples
table System.GetUserInfo ( |
) |
user_info = System.GetUserInfo();
Gets the current user's information and stores it in the "user_info" table.
user_info = System.GetUserInfo();
if (not user_info.IsAdmin) then
Dialog.Message("Warning", "You are not logged in with the appropriate permissions.");
end
Checks to see if the current user is logged in with administrator permissions and if they are not, displays a dialog box informing them.
In this example, the registered user and organization could be accessed by referencing user_info.RegOwner and user_info.RegOrganization.
See also: Related Actions