Permissions
There are two types of permissions in
LSL:
script permissions and
asset permissions. Asset permissions are used to control the distribution and use of an
inventory.
Script permissions are granted by the
user to a
script so it can act upon the user.
The base permission
mask contains the permissions the object had when it was given to the current
owner. In theory, no other mask can have more permissions then the base mask. (If they do, this is a
bug in permissions and should be reported.)
Script Permissions Functions/Events
llGetPermissions
llGetPermissionsKey
llRequestPermissions
run_time_permissions
Script Permissions
Asset Permission Functions
Asset Permission Constants
Mask | Value | Description |
MASK_BASE | 0 | get object's base permissions |
MASK_OWNER | 1 | get owner's current permissions |
MASK_GROUP | 2 | get object's active group's permissions |
MASK_EVERYONE | 3 | get permissions everyone has on object |
MASK_NEXT | 4 | get next owner's permissions |
Asset Permission | Value (in hex notation) | Description |
PERM_ALL | 0x7FFFFFFF | move/modify/copy/transfer permissions |
PERM_COPY | 0x00008000 | copy permissions |
PERM_MODIFY | 0x00004000 | modify permissions |
PERM_MOVE | 0x00080000 | move permissions |
PERM_TRANSFER | 0x00002000 | transfer permissions |
Object |
Asset Permissions |
Script Permissions