11 replies [Last post]
cerup's picture
Offline
Joined: 07/25/2009
Juice: 11
Was this information Helpful?

I have various products and classes (stickers, t-shirts, Product kit, etc) and only admins can create new content for these types. Normally, this would make the link to try to create these content types in 'node/add' disappear to non-admins since they're not accessible; however, this isn't the case and all my products and are showing up in the create content page. When a user clicks them it returns 'Access denied You are not authorized to access this page.' which it should.

Is this a known issue? How can I remove non-authenticated ubercart types/classes from showing on the content creation page?

cerup's picture
Offline
Joined: 07/25/2009
Juice: 11
Re: Product content type/classes showing up in 'create content'

I hate to bump this, but someone surely should have an idea about this, no?

cerup's picture
Offline
Joined: 07/25/2009
Juice: 11
Re: Re: Product content type/classes showing up in 'create conte

No one's experiencing this?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Product content type/classes showing up in 'create c

Are you looking at the create content page as the first user? The first user automatically has all permissions regardless of any roles it might have.

cerup's picture
Offline
Joined: 07/25/2009
Juice: 11
Re: Re: Re: Re: Product content type/classes showing up in 'crea

Thanks for taking the time to reply Lyle.

I am not looking at the create content page as first user. Anonymous users and authenticated (and user 1) users are all able to see products creates even though they don't have permissions to add these types. When an anonymous user or authenticated user tries to add the content, they get the appropriate "Access denied.You are not authorized to access this page." dialog.

I'm unable to figure out how to keep ubercart related content types/classes from displaying on the create content page when they don't have access. It's a pretty significant issue for me unfortunately since it really takes up the majority of the create content page since I have several products.

To summarize, all product types/classes are showing up on the create content page for all users (when they shouldn't be) regardless of permissions.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: Re: Product content type/classes showing up in '

This is certainly a unique case (as I'm sure your searching has revealed), so you should look for factors peculiar to your site that might be affecting this. Ensure you have a row in your user table with a uid of 0. Also, on the post settings page, why don't you go ahead and rebuild node permissions. On the site performance settings page, why don't you clear all the caches. I'm not sure any of these things are related, but it's worth it to start off with the usual bases covered.

cerup's picture
Offline
Joined: 07/25/2009
Juice: 11
Re: Re: Re: Re: Re: Re: Product content type/classes showing up

Thanks for the suggestions Ryan.

Where can I find the user table to check for a uid of 0? I did check the database and it appears to have it, but I'm not positive I'm checking the right location.

I've gone ahead and rebuilt permissions and cleared cache. The same results though. One thing to note (in case it wasn't clear before) is this only is happening with ubercart content types/classes and from the time of installing. Since installing i've added several content types and modules and they all opperate find in regards to permissions and the create content page. So for me, this is a unique case that is unique and also unique to ubercart.

I think it's definitely something with the database, but I'm not sure where to check to correct it.

asak@drupal.org's picture
Offline
Joined: 10/23/2008
Juice: 67
Re: Re: Re: Re: Re: Re: Re: Product content type/classes showing

Well, i just found that ubercart is not really honoring the permissions system regarding product node types and classes.

We found ourselves with a useless product class, which the site owner has added products to, and thought it would be best if we just remove the permissions for the site owner so that he's not able to add/edit/delete and product nodes BESIDES that product class - meaning, he can use the product class node type but not the original product node.

The permissions for this are in place, but the system does not honor them. I even tried to disable the menu item - but that doesn't work, the link to "Create product" does not vanish.

Any idea guys...?

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Re: Re: Re: Re: Re: Re: Re: Product content type/classes sho

I have the same issue... rebuilt permissions.. cleared cache.. check user table '0'... disabled/re-enabled modules still nothing...

The link still shows!

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Re: Re: Re: Re: Re: Re: Re: Re: Product content type/classes

Found the problem for those who have experienced this.

Sometimes when you delete a content type the menu item is not deleted and will continue to show. It will also cause site permissions to act weird.

Go to Administer → Site building → Menus and click reset on the content name that was deleted.

moondrop's picture
Offline
Joined: 03/24/2010
Juice: 253
Possible to remove the create content link?

I have permissions set for members only to be able to post to the forum and list products for sell (marketplace).
I created a primary button for "SELL" but when the user is logged in, it also has the "create content" link at the top as well which when clicked has the option for listing a product for sale or posting to the forum.

Is it possible to remove the create content link only on the nonadmin side when users are logged in? I still want it visible on the admin side and I don't need two links for members to be able to post.

Please help,

Thanks,

pmklegacy's picture
Offline
Joined: 11/07/2011
Juice: 19
Re: Product content type/classes showing up in 'create content'

I have a similar issue. My main admin user cannot see any of the content types to add new content. I mainly need the default content.

I have checked the user table and that is correct. I don't know how to flush the cache or run any of the other items listed in this post tree.

I am using Drupal 7 and Ubercart 3.