Difference between revisions of "Template:LSL Function/permission"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the {{LSLG|{{{1}}}}} permission | {{#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}}.}}}}}}{{#vardefine:also_events|{{#var:also_events}} |