Official Content

Verifies whether the GAM User currently logged in has a given permission or not.

Syntax

GAMRepository.CheckPermission(PermissionName​​​​)

Where:

GAMRepository
     
Is a fixed part of the syntax. Read more at GAM - Repository.
 
PermissionName
   
 Input parameter corresponding to the permission name. This parameter must be of Character data type based on GAMDescriptionLong.

Type Returned: 
GAMBoolean

Samples

Event Start
  If GAMRepository.CheckPermission("is_gam_administrator")
      //OK
    Else
      GAMExampleNotAuthorized.Link()
  Endif
EndEvent

See Also

GAM - Permissions

 

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant