Hi!
These permissions are driving me crazy! Somehow I don´t quite understand how it works. My latest problem is this:
I´m trying to give different user groups permission to add events in different categories.
For example Users in "GroupA" should have sufficient permissions to be able to add events in "CategoryA" and users in "GroupB" should be able to add events in "CategoryB"
My current config lokks like this: GroupA|PostCalendar::|.*|Delete
With this configuration GroupA has access to all categories, which I don´t want.
Does anybody know how it should be?
Regards Mats
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 10:33 PM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
PostCalendar and Permissions on category level?
-
- Rank: Expert
- Registered: Nov 23, 2003
- Last visit: Dec 13, 2009
- Posts: 1487
If you click on the header of the permision table it'll bring up a window with all the modules and blocks permision scheme to work with. Doing this you'll see that PostCalendar has 2 permision schemes, one basic and one for categories... the category one looks like this
PostCalendar::Category | Category Name::Category ID
I have no idea why it seems to ask for the same information in 2 different ways in the second part especially since PostCalendar admin area does not expose the category ID so you'll have to check the database table pn_postcalendar_categories to see it.
Although, it can't hurt to try it with just the name...
--
Under Construction! -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Dec 07, 2006
- Posts: 55
Hi!
I have already tried the configuration you are describing. Have a look at the following picture. I have been trying to get it to work for group "Ledare A-Lag" and the category "A-Laget" with category ID 2. But still users in the group "Ledare A-Laget" can add events to other categories?!
PostCalendar Permissions
Can anyone see what is wrong?
Regards Mats -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: May 15, 2006
- Posts: 11
I am not expert, just started on postnuke myself, but let me share some things I have learned as of late, doing the same things you are doing.
Think of the actual permission itself as access levels, and that they stack on one another. So "none" is at the low end, and "admin" is at the high end, an it goes from low to high in order.
the Permission level "delete" is lower to only "admin" which gives that group a lot of abilitites, not just to actually delete something.
To me, it seems line 7 is right, but at line 8, you are taking away any permissions, you are granting it to them. I would modify that to just "read".
hope that helps.
I could help but notice that you gave unregistered users "admin" access to something...you realy should change it. If I were you, I would bring it down at least 2 slots, to "add", but that is just me :D -
- Rank: Expert
- Registered: Nov 23, 2003
- Last visit: Dec 13, 2009
- Posts: 1487
ankah
To me, it seems line 7 is right, but at line 8, you are taking away any permissions, you are granting it to them. I would modify that to just "read".
Wrong way, goes from bottom to top so 7 would over-ride 8.
The pic is no longer there but it looked right to me. I think the problem is that PC simply does not support this kind of permisioning... the detail scheme is likely for viewing not adding... at least I could not find it in the code.
However I'm going to have need of such a feature myself fairly soon, if I can manage it I'll make the modification available here.
--
Under Construction! -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Dec 07, 2006
- Posts: 55
Hi, teh reason why you didn´t see the pic is that I close down my PC at about 23:00h CET.
I´ve tried all possible combinations but I cannot find what is wrong. About the unregistered users having access to the calendar was a mistake. I tripped on the keyboard. :-/
Thanks!
- Moderated by:
- Support
