Difference between revisions of "Template:LSL Function/permission"
Jump to navigation
Jump to search
m (Stupid error) |
|||
Line 1: | Line 1: | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the {{LSLG|{{{1}}}}} permission{{#ifeq:{{{grant|anyone}}}|anyone||, granted by {{{grant|anyone}}},}} to run.}}}}{{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|}}}| | {{#if: | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the {{LSLG|{{{1}}}}} permission{{#ifeq:{{{grant|anyone}}}|anyone||, granted by {{{grant|anyone}}},}} to run.}}}} | |||
{{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|}}}| | |||
* If the script lacks the permission {{LSLG|{{{1}}}}}, the script will shout an error on {{LSLG|DEBUG_CHANNEL}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone}}}|anyone|| | * If the script lacks the permission {{LSLG|{{{1}}}}}, the script will shout an error on {{LSLG|DEBUG_CHANNEL}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone}}}|anyone|| | ||
* If {{LSLG|{{{1}}}}} is granted by anyone other then {{{grant|anyone}}} then when the function is called an error will be shouted on {{LSLG|DEBUG_CHANNEL}}.}}}}}}{{#vardefine:also_events|{{#var:also_events}} | * If {{LSLG|{{{1}}}}} is granted by anyone other then {{{grant|anyone}}} then when the function is called an error will be shouted on {{LSLG|DEBUG_CHANNEL}}.}}}}}} | ||
{{LSL DefineRow||[[run_time_permissions]]|Permission receiving event}}}}{{#vardefine:also_functions|{{#var:also_functions}} | {{#vardefine:also_events|{{#var:also_events}} | ||
{{LSL DefineRow||[[run_time_permissions]]|Permission receiving event}}}} | |||
{{#vardefine:also_functions|{{#var:also_functions}} | |||
{{LSL DefineRow||[[llGetPermissions]]|Get the permissions granted}} | {{LSL DefineRow||[[llGetPermissions]]|Get the permissions granted}} | ||
{{LSL DefineRow||[[llGetPermissionsKey]]|Get the agent who granted permissions}} | {{LSL DefineRow||[[llGetPermissionsKey]]|Get the agent who granted permissions}} | ||
{{LSL DefineRow||[[llRequestPermissions]]|Request permissions}}}}{{#vardefine:also_articles|{{#var:also_articles}} | {{LSL DefineRow||[[llRequestPermissions]]|Request permissions}}}} | ||
{{LSL DefineRow||{{LSLGC|Permissions/Script|Script permissions}}|}}}}<includeonly>{{#ifeq:{{{mode|{{#var:mode}}}}}|request||{{LSLC|Requires Permissions}}{{LSLC|Permissions/Script/{{{1}}}}}}}</includeonly> | {{#vardefine:also_articles|{{#var:also_articles}} | ||
{{LSL DefineRow||{{LSLGC|Permissions/Script|Script permissions}}|}}}} | |||
}}<includeonly>{{#ifeq:{{{mode|{{#var:mode}}}}}|request||{{LSLC|Requires Permissions}}{{LSLC|Permissions/Script/{{{1}}}}}}}</includeonly> |