| User | Post |
|
2:48 pm February 10, 2010
| giles
Member
| | | |
|
| posts 10 |
|
|
Can anyone help with this problem? I have an RS role as administrator and I'm trying to setup a user as a ngg administrator.
My user has a WP role of subscriber - but that is considerably extended through use of RS.
In RS I can assign my user a general role as 'gallery administrator' in Assign General Roles. And they are indeed listed as having a 'Gallery Administrator' assignment for ngg on that screen. But this user still doesn't have that assignment on their user profile page and still cannot create an ng gallery.
On the Ngg Gallery Roles page (Under 'Roles' on the Dash), there is no Gallery Administrator option under the 'Default for new Galleries'.
When, as administrator, I click the 'Defaults for new Galleries' option I get a message screen that says "You do not have sufficient permissions to access this page". So I don't seem to be able to set 'Gallery Administrator' as the default or for any existing galleries.
Can anyone help? I seem to have tried every option I can think of to allow this user to create a gallery (although they can manage existing galleries) The approach of allowing specific users to do specific tasks has worked well for me in other areas of RS - but not here!
(BTW I'm using WP 2.8.4 RS 1.1.5, RS for NGG 0.9.5)
Thank you for any help.
|
|
|
4:00 pm February 10, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
What version of NextGEN Gallery are you running?
|
|
|
2:36 am February 11, 2010
| giles
Member
| | | |
|
| posts 10 |
|
|
Hi Kevin
Apologies I forgot that vital info - I'm using Ngg version 1.4.3.
I've subsequently downgraded to ngg 1.4.2 then 1.4.1 - and each time been unsuccessful in assigning the gallery administrator role, and still getting the lack of permissions message when logged in as administrator.
Many thanks for your time Kevin.
(And thanks from St Francis Church Primary School in Birmingham, Uk for creating, making available and supporting such a vital plugin.)
|
|
|
9:49 am February 11, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
I confirmed and fixed two of the problems you reported, and have explanations or "works for me" for others. See below.
giles said:
In RS I can assign my user a general role as 'gallery administrator' in Assign General Roles. And they are indeed listed as having a 'Gallery Administrator' assignment for ngg on that screen. But this user still doesn't have that assignment on their user profile page and still cannot create an ng gallery.
I was unable to confirm these errors. Make sure you have the following option enabled: Roles > Options > Advanced tab > User Profile > Display User Roles.
I also don't have any problem adding a new gallery when logged in as a Subscriber with General Role of Gallery Author, Gallery Editor or Gallery Administrator. What I did notice is that the "Add Gallery" menu link was hidden from Gallery Authors and Gallery Editors while they were editing another gallery. This is fixed in the updated Role Scoping for NGG development snapshot. You can also manually apply the fix by editing rs-ngg_functions.php as follows:
change:
$args = array();
$cap_defs->add( 'NextGEN Upload images', $defining_module_name, $src_name, $object_type, $op_type, $args );
to:
$args = array( 'owner_privilege' => true );
$cap_defs->add( 'NextGEN Upload images', $defining_module_name, $src_name, $object_type, $op_type, $args );
giles said:
On the Ngg Gallery Roles page (Under 'Roles' on the Dash), there is no Gallery Administrator option under the 'Default for new Galleries'… So I don't seem to be able to set 'Gallery Administrator' as the default or for any existing galleries.
The Gallery Administrator role is not applicable for gallery-specific role assignment. The Gallery Editor role includes all capabilities needed to fully edit any gallery. Gallery Administrator adds capabililies that enable access to the blog-wide overview and options.
giles said:
When, as a Gallery Administrator, I click the 'Defaults for new Galleries' option I get a message screen that says "You do not have sufficient permissions to access this page".
I've confirmed and fixed this Role Scoper bug. Users who are not WordPress Administrators were not allowed to edit any Roles or Restrictions via the Roles/Restrictions menu forms, even if they have an RS role that allows it for certain content. The fix is available in the updated Role Scoper development snapshot. FYI, the only changed file for this fix is submittee_rs.php
Let me know if you still have issues after these fixes and explanations.
|
|
|
3:02 pm February 11, 2010
| giles
Member
| | | |
|
| posts 10 |
|
|
Hi Kevin
As you suggested, I checked that 'Display User Roles' was selected (it was) and I uploaded the Development snapshot — lo and behold my user can now create new galleries!
Thank you so very much for your time to help us.
Another tack - I'm looking forward to trying out your new Revisionary extension which maybe just the thing that'll help us reach our goal in school of having older kids revising and moderating posts written by littler kids. If so it'll be a great co-operative learning experience for them…..
Best wishes.
(BTW when I'm logged in as Administrator and go to Roles>NGG Galleries>Section 3:Select Roles to Assign / Remove>DEFAULTS for new galleries I still get sent to a page that says I do not have enough permissions to access the page - this is the url: /wp-admin/admin.php?page=rs-object_role_edit&src_name=ngg_gallery&object_type=ngg_gallery&object_id=0&object_name=DEFAULTS%26nbsp%3Bfor%26nbsp%3Bnew%26nbsp%3BNGG%26nbsp%3BGalleries . Not that it worries me as I can now set the users up as required!)
|
|
|
3:30 pm February 11, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
Glad to hear you're seeing some improvement. Did you install the development snapshots of both Role Scoper and the Role Scoping for NGG extension?
|
|
|
4:14 am February 12, 2010
| giles
Member
| | | |
|
| posts 10 |
|
|
Derrr…
Have done now!
Thanks…..
|
|
|
8:36 pm February 25, 2010
| ASwingler
Member
| | Southern California | |
|
| posts 5 |
|
|
Hi Kevin.
First off - thank you for creating this excellent plugin!
I'm running RS 1.1.8.dev and RS/NGG 0.9.6.dev on a WP 2.9.2 install with NGG 1.4.3 (all latest versions).
I've been running into the same problem the Giles reported, whereby when I go to Roles/NGG Galeries and click on 'DEFAULTS for new NGG Galleries' or any of the other gallery links, I get the "you do not have sufficient permissions to access this page" message.
I've confirmed that the dev versions of both plugins are active, I've deactivated and reactivated both plugins and I've cleared the RS internal cache (just in case!) but the problem persists. The user I'm logged in with is a WP Administrator.
Any ideas?
Regards, Andrew.
|
|
|
2:29 pm February 26, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
I'm not seeing this with the current code on my test installation. I don't think anything relevant has changed since your download, but just to be sure can you install the updated Role Scoper development snapshot before I chase this any further?
|
|
|
11:32 am February 27, 2010
| ASwingler
Member
| | Southern California | |
|
| posts 5 |
|
|
Thanks for getting back to me - I installed that dev snapshot and deactivated/reactivated both plugins. I'm still seeing the same problem.
I deactivated all plugins with the exception of RS, NGG and the RS/NGG extension, and the problem still persists.
Thanks, Andrew.
|
|
|
8:53 am March 1, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
Just to clarify, it is a logged Administrator who is unable to store a Gallery Editor role? Do you have the same problem for a lesser user who is granted a General Role of Gallery Administrator?
|
|
|
10:35 am March 1, 2010
| ASwingler
Member
| | Southern California | |
|
| posts 5 |
|
|
It's a logged on Administrator who gets an unauthorized message when clicking on any of the gallery links (or defaults link).
I've not had a chance to check with a different user yet - I'll do that as soon as I get a moment and I'll report back.
|
|
|
3:44 pm March 11, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
ASwingler said:
It's a logged on Administrator who gets an unauthorized message when clicking on any of the gallery links (or defaults link).
I've not had a chance to check with a different user yet - I'll do that as soon as I get a moment and I'll report back.
Oh, I see - you get that error message when clicking on the linked Gallery Name. That's supposed to bring up a separate form for manually editing roles for that individual gallery. You don't have to do it that way - in most cases it's just as easy to select your users/groups and roles from among in the Bulk Admin form and then click the Update button.
But this is a legitimate bug that I'll fix in the next Role Scoper release.
|
|