Difference between revisions of "Template:LSL Function/permission"
Jump to navigation
Jump to search
(template reduction) |
|||
Line 1: | Line 1: | ||
{{#if: | {{#if: | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the | {{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the [[{{{1}}}]] permission{{#ifeq:{{{grant|anyone}}}|anyone||, granted by {{{grant|anyone}}},}} to run.}}}} | ||
{{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|}}}| | {{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|}}}| | ||
* If the script lacks the permission | * If the script lacks the permission [[{{{1}}}]], the script will shout an error on {{LSL Const|DEBUG_CHANNEL|integer|2147483647|hex=0x7FFFFFFF}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone}}}|anyone|| | ||
* If | * If [[{{{1}}}]] is granted by anyone other then {{{grant|anyone}}} then when the function is called an error will be shouted on {{LSL Const|DEBUG_CHANNEL|integer|2147483647|hex=0x7FFFFFFF}}.}}}}}} | ||
{{#vardefine:also_events|{{#var:also_events}} | {{#vardefine:also_events|{{#var:also_events}} | ||
{{LSL DefineRow||[[run_time_permissions]]|Permission receiving event}}}} | {{LSL DefineRow||[[run_time_permissions]]|Permission receiving event}}}} | ||
Line 11: | Line 11: | ||
{{LSL DefineRow||[[llRequestPermissions]]|Request permissions}}}} | {{LSL DefineRow||[[llRequestPermissions]]|Request permissions}}}} | ||
{{#vardefine:also_articles|{{#var:also_articles}} | {{#vardefine:also_articles|{{#var:also_articles}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||[[:Category:LSL Permissions/Script|Script permissions]]|}}}} | ||
}}<includeonly>{{#ifeq:{{{mode|{{#var:mode | }}<includeonly>{{#ifeq:{{{mode|}}}{{#var:mode}}|request||[[Category:LSL Requires Permissions]][[Category:LSL Permissions/Script/{{{1}}}]]}}</includeonly> |