Extension talk:SemanticAccessControl

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Deletion permission tab & ACL namespace115:34, 26 April 2012
Extension doesn´t work617:30, 5 April 2012
Pages, Templates, Forms, Categories for SemanticAccessControl119:30, 3 April 2012
How do I set permissions?119:27, 3 April 2012
namespace317:46, 20 March 2012
How do I use the parser functions?211:54, 1 March 2012
Sreenshots312:05, 14 February 2012
Configuration114:04, 10 February 2012
6 extensions - really essentiell? And is there an example page?418:45, 1 February 2012
Installation123:13, 23 January 2012

Deletion permission tab & ACL namespace

Hi, we use access control only with a form and templates.
We don´t need the "permission" tab and the ACL namespace.
Is it possible to delete this tab and this namespace?
How can I delete these and does the Extension still work after that?

80.149.179.208:03, 26 April 2012

To remove the permission tab, comment out line with 'PermissionTab' in the SemanticAccessControl.php. Please keep the ACL namespace, it is not used if permission tab is removed. However, it is inside of the code. So it could break code if ACL namespace is removed. It seems you get this extension worked. By the way, I'd like to hear some your comment on this extension such as installatio, configuration and features.

thanks

Jasonzhang (talk)15:34, 26 April 2012
 

Extension doesn´t work

Hi, the extension doesn´t work. I saved a page with this code:

{{ACL Page User Permission
|User=Mediawikitester
|Permission=read, write, grant
|Grant=Grant}}

But all users can read and write :-(

Mediawikitester (talk)09:27, 3 April 2012

and also anonymous users have access.

What could be my mistake?

Mediawikitester (talk)14:00, 3 April 2012
 

You need EXPLICITLY deny access for ALL other users.

You can add statment like this

{{ACL Page Group Permission
|UserGroup=All Users
|Permission=write, read, grant
|Grant=Reject
}}

or Configure UserGroup:SiteACL.

Jasonzhang (talk)19:35, 3 April 2012

Hi, how do I set permissions for specific users? For example: I want to create a page, that only I have access. Other users and anonymous should not able to read or write. I tought that works with:

{{ACL Page User Permission
|User=Mediawikitester
|Permission=read, write, grant
|Grant=Grant}}

But after saving that page, still all can read and write :-(

Mediawikitester (talk)20:31, 4 April 2012

Please read the documentation and my reply! First, check your installation and make sure Semantic Internal Object extensions works. If SIO does not work, this extension does not work, either. Second, please read my reply before. You have to explicitly deny access for ALL other users. Did you do it? Moreover, login may be required for all users. I did not test this user for anonymous user. In my test, login is required at my installation.

Jasonzhang (talk)17:28, 5 April 2012
 
 

Is there an existing webside, which use this extension? It would be very helpful, if I had an example.
I need the information, what for forms, templates and UserGroups,... I have to create, that the extension works.

Mediawikitester (talk)07:37, 5 April 2012

Sorry, No existing website. I do not have a public server at my dispose.

Jasonzhang (talk)17:30, 5 April 2012
 
 

Pages, Templates, Forms, Categories for SemanticAccessControl

Hi,

we have installed the rquired extensions. But we have no pages, templates, forms,... from this extensions (Pages like "Form:ACL_UserGroup" do not exist). Is it possible to export/import the pages from Google SemanticAccessControl Project Page?

Best regards!

80.149.179.207:06, 3 April 2012

The pages(wiki text format) are inside of the distribution. You can use wikibot.pl in google project page to BATCH UPLOAD them to your wiki site.

Jasonzhang (talk)19:30, 3 April 2012
 

How do I set permissions?

How do I set permissions? With "edit with form" or with "Permission"-tab?

80.149.179.214:12, 3 April 2012

Most likely, you want to embed permision syntax in template page. Please see the Usage sectionin documnetation

Jasonzhang (talk)19:27, 3 April 2012
 

Hello, can I use this extension for pages in all namespaces? Or have to be the pages in namespace "ACL" ? Thanks

Mediawikitester (talk)14:24, 6 March 2012

Sorry, I do not understand your question. Can you elaborate it a little more? If you mean "is ACL namespace rquired", yes, it is required. -jason

154.5.162.25419:33, 6 March 2012

Okay I try it in an example: I have an existing page (Help:Administration) and I want to set access control... Is that possible? Or I have to rename the page into: "ALC:Administration"?

Mediawikitester (talk)09:41, 20 March 2012

Edit SemanticAccessControl.php, add NS_HELP to $ACL_CONTENT_Namespaces. Basically, you want SemanticAccessControl treats pages in help namespace as regular content page for user. After this, you can apply access control rule in a mechanims provided by SemanticAccessControl

Jasonzhang (talk)17:46, 20 March 2012
 
 
 

How do I use the parser functions?

For example: {{#allgroups}} or {{#allusers}} → didn´t work

80.149.179.216:24, 20 February 2012

try this: {{#allgroups:0}} or {{#allusers:0}}. I guess you have to supply the : for the MediaWiki to recognize it is parser function.

Jasonzhang (talk)18:25, 20 February 2012

{{#allgroups:0}} or {{#allusers:0}} didn´t work...

80.149.179.211:54, 1 March 2012
 
 

Sreenshots

I don´t know if I understand the function of this extension. Can you upload any sreenshots, how a user works with this accesscontrol? Many thanks!

80.149.179.213:29, 9 February 2012

sorry, no screenshot. Please download and try yourself out. Most likely, you only need to embed acl statement in template. There is no need for any GUI except defining user group from time to time.

Jasonzhang17:57, 9 February 2012

It is possible with a form, right? How such a form could look? Checkboxes with the groups? And what for permissions the users are able to choose?

80.149.179.209:10, 10 February 2012

For example like that image? Would it work so? ExampleSemanticAccessControl.JPG

Mediawikitester12:15, 10 February 2012
 
 
 

Configuration

The instruction on the Page is

  • Configure default site access control rule. Edit UserGroup:SiteACL
  • Configure the default policy for user in one group. Edit UserGroup:GroupACL
  • Add any user who design the site. Edit UserGroup:Developers

When I open these pages i get empty pages. What should I add there?

129.27.219.24214:02, 10 February 2012

BTW Nice idea doing this semantically!

129.27.219.24214:04, 10 February 2012
 

6 extensions - really essentiell? And is there an example page?

Why I need 6 extensions, that I can use accesscontrol. Is it really essentiell?

Is there an example page, for testing this extension?

Speedtook09:49, 31 January 2012

you could use the "semantic mediawiki bundle" which, I believe, contains the 6 extensions (but you need to activate some like the Semantic Internal Object one)

Pierro7815:57, 31 January 2012
 

All six extensions are needed. As Pierro78 pointed out, you can use semantic mediawiki bundle plus this extension. Set up your own demonstration following the "Demonstration" section in the document.

Jasonzhang18:42, 31 January 2012

Hello,

already we installed Semantic Mediawiki and Semantic Forms, also BlueSpice and LDAP Authentication. And we do not want install a lot of extensions, because if we must update our wiki, it will be more complicated. The extensions have to work together.

I do not know if SemanticAccessControl this extension is which I need. We tried it with ImprovedAccessControl, but the problem is, this extension does not work in a template. So it would be good, if I could test it before I have installed it, because else I must delete it again.

Thank you for your fast answers!
Kind regards

Speedtook13:06, 1 February 2012

Some things have to be accepted the way they are. However, these extensions are easy going on upgrade. Cheers

[[kgh]]18:45, 1 February 2012
 
 
 

Installation

"Finally, upload pages under 'pages' folder and 'groups' folder to your site." < This needs clarification, please. Simply uploading these files to the /mw/ root or /extensions/ has no effect. Adam Edgington 22:50, 23 January 2012 (UTC)

Adam Edgington22:50, 23 January 2012

Update that section. Please modify it directly to make it clear if you still think it is unclear.

Jasonzhang23:13, 23 January 2012
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox