With the Rights object you can check the rights given to the user eg. in the kiosk mode. The Rights object has one predefined instance, rights (lower case), which reflects the current settings from Settings / Kiosk mode / Functionality. Note that the rights object only gives some hints - you may have good reasons for your script to ignore some of them.
See also: <if>-tag in skins