Difference between revisions of "Template:LSL Function/permission"

From Second Life Wiki
Jump to navigation Jump to search
(The constant categories looked like they might be a good idea at the time, but in hindsight they really weren't and only made a mess of things)
Line 1: Line 1:
{{#if:
{{#if:
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the [[{{{1}}}]] permission{{#ifeq:{{{grant|anyone}}}|anyone||, granted by {{{grant|anyone}}},}} to run.}}}}
{{#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|<noinclude>*</noinclude>}}}|
* 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||
* Do not depend upon the auto-grant status of permissions. '''Always''' use the [[run_time_permissions]] event.
* 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<noinclude>*</noinclude>}}}|anyone||
* 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}}.}}}}}}
* 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}}
Line 12: Line 13:
{{#vardefine:also_articles|{{#var:also_articles}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{LSL DefineRow||[[:Category:LSL Permissions/Script|Script permissions]]|}}}}
{{LSL DefineRow||[[:Category:LSL Permissions/Script|Script permissions]]|}}}}
}}<includeonly>{{#ifeq:{{{mode|}}}{{#var:mode}}|request||[[Category:LSL Requires Permissions]]}}</includeonly>
}}<includeonly>{{#ifeq:{{{mode|}}}{{#var:mode}}|request||[[Category:LSL Requires Permissions]]}}</includeonly><noinclude>
{| {{Prettytable}}
|-{{Hl2}}
! Name
! Value
|-
|header_footnote
|{{#var:header_footnote}}
|-
|caveats
|{{#var:caveats}}
|-
|also_events
|
{|
{{#var:also_events}}
|}
|-
|also_functions
|
{|
{{#var:also_functions}}
|}
|-
|also_articles
|
{|
{{#var:also_articles}}
|}
|}
</noinclude>

Revision as of 05:39, 14 May 2008

Name Value
header_footnote
caveats
  • Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event.
  • If the script lacks the permission [[{{{1}}}]], the script will shout an error on DEBUG_CHANNEL and the operation fails (but the script continues to run).
  • If [[{{{1}}}]] is granted by anyone other then anyone then when the function is called an error will be shouted on DEBUG_CHANNEL.
also_events
•  run_time_permissions Permission receiving event
also_functions
•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
also_articles
•  Script permissions