PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old April 20th, 2005, 09:09 AM   #1 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
[RC4] Permissions - Design Issue?

First of all, I think in gallery_global.php int should be
Code:
Content visible to verified customers only.
Instead of
Code:
Content visible to verified customers only.
Furthermore, ther seems to be a serious problem with permissions.

Let's say Usergroup Registered does not hav any permissions (for gallery) at all.
Now I also got a Usergroup Gallery Users with do have permissions to View, Upload, etc.

But in 1 specific album, I don't want Gallery Users to be able to upload images, so I am using custom permissions there only for this usergroup.
But users who are primary Registered and have a membergroup Gallery Users are still able to upload images there - until I select Use Custom Permissions and Hit Save (without changing anything, as I ready said - per default they don't have any rights).

I tracked this down to fetch_category_perms():

Code:
Content visible to verified customers only.
It seems like you are setting the combined usergroup permissions ($galleryperms) here if specific permissions for usergroup $usergroupid do not exist for category $catid.
Shouldn't the permissions for this specific usergroup ($gallery_permissions["$usergroupid"]['gallery_perms']) be used here?
Kirby is offline  
Old April 20th, 2005, 10:29 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: [RC4] Permissions - Design Issue?

You are correct about the typo with $bbuserino variable. There's really no reason that should cause a problem though as the check to see if that variable is empty is really just more of a percaution and the foreach statement is still processing the proper variable.

For the permissions thing, it almost sounds like you've answered your own question. If a user is a member of two groups and one group has permissions for a category then they are going to be able to view that category. If you don't want that group to have permissions to a specific category then you need to change the permissions for that group in that specific category (as you said above).
 
Old April 20th, 2005, 10:42 AM   #3 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC4] Permissions - Design Issue?

I think you got me wrong Brian

Usergroup Permissions (gallery_admin.php?do=permissions)
Registered => All No
Gallery Users => Can Upload = Yes

Category Permissions (gallery_admin.php?do=categorypermissions)
For Album X (all other permissions are not customized):
Registered => Not Customized
Gallery Users => Customized, Can Upload = No

Now I have a user who is member of Registered and Gallery Users: He can Upload in Album X.
Only if I select Use Custom Permissions for usergroup Registered (without chaning any of them, all set to No) he will not be able to upload there.

And I think this is not the way it should be?
Kirby is offline  
Old April 20th, 2005, 10:48 AM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: [RC4] Permissions - Design Issue?

No clue how that would be happening. If you'd like to submit a support ticket though I'll be glad to take a look.
 
Old April 20th, 2005, 10:51 AM   #5 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: [RC4] Permissions - Design Issue?

Quote:
Originally Posted by Kirby
Only if I select Use Custom Permissions for usergroup Registered (without chaning any of them, all set to No) he will not be able to upload there.
Brian, the same thing is happening with your Show Gallery Images on the Forum Home Page and Kevin's Show Gallery Images on the CMPS page hacks. Only Admins/Super Mods can see the images, unless you go to the permissions editor for each category, and set the permissions to Custom (but not change any of them). (Worked fine on RC3, but this issue started with RC4.)

http://www.vbadvanced.com/forum/show...&postcount=328

Might be related somehow?
ConqSoft is offline  
Old April 20th, 2005, 10:55 AM   #6 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC4] Permissions - Design Issue?

OK. I'll prepare a totally fresh installation, as I don't feel that much comfortable giving access to my testserver
Kirby is offline  
Old April 20th, 2005, 10:57 AM   #7 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: [RC4] Permissions - Design Issue?

Quote:
Originally Posted by ConqSoft
Might be related somehow?
I've been following this thread carefully for that very reason.
KW802 is offline  
Old April 20th, 2005, 01:33 PM   #8 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC4] Permissions - Design Issue?

Ticket submitted
Kirby is offline  
Old April 20th, 2005, 11:53 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Location: USA
Posts: 33
Re: [RC4] Permissions - Design Issue?

I would love to know if this was resolved I have the same problem
TheAllusionist is offline  
Old April 21st, 2005, 05:08 AM   #10 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC4] Permissions - Design Issue?

I do already have a fix that seems to work, but I want Brian to confirm this first
Kirby is offline  
Old April 21st, 2005, 03:57 PM   #11 (permalink)
Brian
Guest
 
Posts: n/a
Re: [RC4] Permissions - Design Issue?

For anyone else that is experiencing a problem with the permissions as Kirby is describing, please download the package from here again and upload the /forum/includes/functions_gallery.php file over your existing one.
 
Old April 21st, 2005, 04:10 PM   #12 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: [RC4] Permissions - Design Issue?

That doesn't fix the issue with your (and Kevin's) hacks to show gallery images in other locations. Any ideas on those?
ConqSoft is offline  
Old April 21st, 2005, 04:19 PM   #13 (permalink)
Brian
Guest
 
Posts: n/a
Re: [RC4] Permissions - Design Issue?

That's due to the changes in the permissions system after RC3. I'll go and update my post for the forum home hack and I believe Kevin is going to try to update his as soon as he has a few minutes to spare.
 
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Permissions issue(NOT A BUG) Underlab Photopost Pro Bug Reports 2 August 6th, 2005 03:38 PM
Category Permissions and Description Issue Xil Ze Installs and Upgrade - vBulletin 3.0.X 0 July 9th, 2005 01:12 PM
[RC4] Display issue or bug? (... or something I did?) KW802 Installs and Upgrade - vBulletin 3.0.X 3 April 29th, 2005 02:56 PM
Back up and permissions issue Markmusicman Photopost Pro How Do I...? 7 March 12th, 2005 09:33 PM


All times are GMT -5. The time now is 01:25 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0