getAllowsURIAccess: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=getAllowsURIAccess |version=1.10.0 |trusted=true |description= Checks to see if a Lib:Token allows URI access or not. |usage= <source lang="mtmacro"...") |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 9: | Line 9: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getAllowsURIAccess() | getAllowsURIAccess() | ||
getAllowsURIAccess(libToken) | getAllowsURIAccess(libToken) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|libToken|The name of the Lib:Token to check.}} | {{param|libToken|The name or token ID of the Lib:Token to check.}} | ||
If the libToken is not specified it defaults to the current token. Calling this with a non Lib:Token specified will | If the libToken is not specified it defaults to the current token. Calling this with a non Lib:Token specified will always result in it returning false. | ||
|also= | |also= | ||
{{func|setAllowsURIAccess}} [[Library Tokens]] | {{func|setAllowsURIAccess}} <br> | ||
[[Library Tokens]] | |||
}} | }} | ||
[[Category:Miscellaneous Function]] | [[Category:Miscellaneous Function]] |
Latest revision as of 23:59, 13 May 2024
getAllowsURIAccess() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.10.0
Checks to see if a Lib:Token allows URI access or not.
Usage
getAllowsURIAccess()
getAllowsURIAccess(libToken)
Parameters
libToken
- The name or token ID of the Lib:Token to check.
If the libToken is not specified it defaults to the current token. Calling this with a non Lib:Token specified will always result in it returning false.