AccessControl

From KIproBatt Wiki
< TestPage
TestPageAccessControlRead
Tag: 2017 source edit
m
Tag: 2017 source edit
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
see subpages
 
see subpages
 
{{#subpages: }}
 
{{#subpages: }}
 +
{{AccessControl/Public}}
  
{{set: Visible to=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 15: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.HasRestrictedSubpageVisible toThis property is a special property in this wiki. 
TestPage/AccessControlTestPage/AccessControl/Read
TestPage/AccessControl/Edit
TestPage/AccessControl/PublicEdit
TestPage/AccessControl/Readwhitelist
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/AccessControl20 March 2021 14:15:02
20 November 2021 08:41:36
16 November 2021 17:34:46
whitelist
key
public