View Full Version : usergroups and categories permission
November 10th, 2007, 04:59 PM
I use a lot of categories. For each categorie, I just want one usergroup to be able to post in there. However, if I add a new usergroup, that usergroup is by default able to post in each categorie. So after adding a new usergroup, I have to check all categories, again and again to switch off posting permissions for the new usergroup.
I hope you understand...
November 10th, 2007, 05:58 PM
You must create all your usergroups first then you can go through edit categories to set permissions. New groups when created are automatically able to do everything in edit categories as the master switches are under edit usergroups which you set. In edit cats you further define permissions after you get everything correct in the master permissions in edit usergroups.
November 11th, 2007, 04:04 AM
So I need some advice:
I have categories. In each categorie, I want only 1 user to be able to upload. I don't know usergroups yet, that depends who signs up and what content they have.
So, I created usergroups, did set permissions and that worked fine.
But now, I added a new usergroup and that usergroup is automatically able to post in all previous categories.. Very inconvenient for the way I did set up my photopost: eacht time I add a new usergroup, I have to go through all categories to set permissions right again?
Or is there a way to work around this problem? ( Best solution if I were able to assign categories top a specific user each time.)
Maybe it is possible to make a code hack that doesn't update the ugnopost field in the pp_categories table when a new usergroup is added ?
November 11th, 2007, 09:11 AM
Well it is inconvenient for the way you want to do things this is sure, However the permissions structure is this.
EDIT USERGROUPS MASTER PERMISSIONS
EDIT CATEGORIES SECONDARY PERMISSIONS.
Therefore given that structure as posted yes if you create a new usergroup you will need to set secondary permissions in edit categories.
So basically your script would need to be modified if you expect it to perform in some other way. We do not support code modifications in any manner. You can try making sure lines 349-398 of adm-cats change to this but if you wish any further assistance you would need to post in THE MOD CORNER which is outside product support since I have not tested this and it is not supported by us.
reset( $ugviewblock );
while ( list($ignore,$vgid) = each($ugviewblock) )
if ($groupid != $vgid)
$view_checked = "CHECKED";
reset( $ugupblock );
while ( list($ignore,$ugid) = each($ugupblock) )
if ($groupid != $ugid)
$up_checked = "CHECKED";
reset( $ugpostblock );
while ( list($ignore,$pgid) = each($ugpostblock) )
if ($groupid != $pgid)
$post_checked = "CHECKED";
reset( $ugvoteblock );
while ( list($ignore,$pgid) = each($ugvoteblock) )
if ($groupid != $pgid)
$vote_checked = "CHECKED";
reset( $ugannoblock );
while ( list($ignore,$agid) = each($ugannoblock) )
if ($groupid != $agid)
$anno_checked = "CHECKED";
November 11th, 2007, 08:02 PM
I also have problems with usergroups and categories permission
I have a Category named "Workshop" and I only want people who was on that workshop to upload to that category.
But even if I in the categories permissions set only that usergroup to allow uploads all other usergroups can still upload to that category???
In the Usergroup Permissions you only have yes or no to uploads. And if I set that permission to no the user can´t upload in any Category.
So what can I do?
November 11th, 2007, 08:13 PM
You need to set uploads to yes in the global setting of edit usergroups and you refine them in edit categories.
If you only set one usergroup to be able to upload in edit categories only that usergroup can upload to that cat. The category drop down box on upload will only have categories listed they can upload to.
That is what we mean by edit cats refining permissions. Because the global upload setting lets users upload and then you go to edit cats to refine and set which cats they can or can not upload too.
November 11th, 2007, 08:43 PM
Yes but thats exactly what I have done.
But even if I remove all checkmarks for uloads in edit Categories, everybody can still upload????
November 11th, 2007, 09:36 PM
Only usergroups you allow uploads to in edit cats will be able to upload to those cats. When they go to upload and have to pick between the cats to upload only the cats you allow them to upload to will show in the dropdown. So if one group has permissions to upload to only 5 cats those will be the only 5 cats that show in his cats box.
November 12th, 2007, 09:01 AM
Ok Thanks Chuck
November 12th, 2007, 09:24 AM
Not a problem at all buddy.
November 14th, 2007, 07:10 AM
we posted this as suggested in the modification forum. unfortunately no reactions. Now we created a script, which removes the authrizations. I a newer version, it would be very nice if there would be an option (when adding a new usergroup) to deny all permissions and change the later on manually. In that way, I would only have to adjust authorizations for one forum and not for all.
I think more people have problems with this, because also for categories which are used as name only (subcategories for posting) suddenly these users from the new usergroup are able to post in..
Thanks anyway for your help!
November 14th, 2007, 08:43 AM
Paul that would be the default way things are suppose to work as explained and most customers want things to work this way. Feel free to modify your code as necessary to suit your needs.
April 27th, 2012, 11:40 PM
I realize this is an older post I was wondering if this was still the answer for this issue. (recoding script)
I can't make usergroups ahead of time. I run a class site - I don't know what the teachers are going to teach in the future (each gallery I create is private to that class so only that user group is allowed access)
It's time consuming as our site grows to have to go in and uncheck a new usergroup from every previous gallery. I'd rather not recode because i don't want to lose any support from you. So I'm just hoping later versions have a way to change the default for new usergroups - I'd rather them have permission to nothing and I add the permissions.
thanks in advance
April 28th, 2012, 09:33 AM
Our permissions are set default like any script that users usergroup permissions. They are defaulted in category permissions to allow permissions and in usergroups to disallow and the admin sets permissions as they want when they add a usergroup.
If you want to alter how things work it is called code modification and there is no support for such a thing the customer would have to do this themselves.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.