AccessControl
From KIproBatt Wiki
< TestPage
Simon Stier (talk | contribs) Tag: 2017 source edit |
Simon Stier (talk | contribs) m Tag: 2017 source edit |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
see subpages | see subpages | ||
{{#subpages: }} | {{#subpages: }} | ||
+ | {{AccessControl/Public}} | ||
− | {{ | + | <div style="display:none">{{:{{ROOTPAGENAME}}/_acl}}</div> |
+ | subjects of a query are filtered | ||
+ | {{#ask: [[Visible to::!public]] | ||
+ | |?editable by | ||
+ | |?editable by user | ||
+ | |?Visible to | ||
+ | |?Visible to user | ||
+ | }} | ||
+ | |||
+ | {{#set: |HasRestrictedSubpage=TestPage/AccessControl/Read}} | ||
+ | |||
+ | but objects are not | ||
+ | {{#ask: [[{{FULLPAGENAME}}]] | ||
+ | |?-Has parent page | ||
+ | |?HasRestrictedSubpage | ||
+ | |?HasRestrictedSubpage.Visible to | ||
+ | }} | ||
+ | |||
+ | subject filtering could be bypassed with property paths: | ||
+ | {{#ask: [[{{FULLPAGENAME}}]] | ||
+ | |?-Has parent page.Modification date | ||
+ | |?-Has parent page.Visible to | ||
+ | }} | ||
+ | |||
+ | <!-- | ||
{{#ask: [[editable by::+]] OR [[Visible to::+]] | {{#ask: [[editable by::+]] OR [[Visible to::+]] | ||
|?editable by | |?editable by | ||
Line 9: | Line 34: | ||
|?Visible to | |?Visible to | ||
|?Visible to user | |?Visible to user | ||
− | }} | + | }} --> |
Latest revision as of 14:35, 28 May 2022
see subpages
subjects of a query are filtered
but objects are not
-This property is a special property in this wiki. | HasRestrictedSubpage | Visible toThis property is a special property in this wiki. ⠉ | |
---|---|---|---|
TestPage/AccessControl | TestPage/AccessControl/Read TestPage/AccessControl/Edit TestPage/AccessControl/PublicEdit | TestPage/AccessControl/Read | whitelist key |
subject filtering could be bypassed with property paths:
Modification date"Modification date" is a predefined property that corresponds to the date of the last modification of a subject and is provided by Semantic MediaWiki. ⠉ | Visible toThis property is a special property in this wiki. ⠉ | |
---|---|---|
TestPage/AccessControl | 20 March 2021 14:15:02 20 November 2021 08:41:36 16 November 2021 17:34:46 | whitelist key public |