You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bloodhound.apache.org by Kevin Stokes <KS...@imaginant.com> on 2015/07/01 16:30:37 UTC

PRODUCT_VIEW permissions on new added products

I've installed Bloodhound 0.8.0 on a Windows 7 machine using sqlite.


It seems to be working in general but when I add a product (using the web gui), users that are not admin keep getting a Forbidden PRODUCT_VIEW privileges are are required errors when viewing the dashboard for all products except the default product.


  In viewing the Permissions table with the Sqlite browser, I see that the default product has records for enabling PRODUCT_VIEW for users 'authenticated' and 'anonymous'.  However, my newly created product does not.  If I add two records to the permissions table with the sqlite browser manually, then this problem goes away.  Specifically, I add two records


anonymous     |  PRODUCT_VIEW  |   NEWPRODUCT

authenticated |  PRODUCT_VIEW  |   NEWPRODUCT


Any ideas of how to fix this so then when the users create a new product these permissions are added automatically?





This email message and any attached files may contain confidential information. If you are not the intended recipient, please notify the sender by email and then delete this email. All views and opinions presented in this email are solely those of the author and do not represent those of Imaginant Inc. Nothing in this email constitutes a legally-binding offer, warranty, or acceptance of any agreement.

Re: PRODUCT_VIEW permissions on new added products

Posted by Olemis Lang <ol...@gmail.com>.
Hi Kevin !

On 7/1/15, Kevin Stokes <KS...@imaginant.com> wrote:
> I've installed Bloodhound 0.8.0 on a Windows 7 machine using sqlite.
>
>
> It seems to be working in general but when I add a product (using the web
> gui), users that are not admin keep getting a Forbidden PRODUCT_VIEW
> privileges are are required errors when viewing the dashboard for all
> products except the default product.
>
>
>   In viewing the Permissions table with the Sqlite browser, I see that the
> default product has records for enabling PRODUCT_VIEW for users
> 'authenticated' and 'anonymous'.  However, my newly created product does
> not.  If I add two records to the permissions table with the sqlite browser
> manually, then this problem goes away.  Specifically, I add two records
>
>
> anonymous     |  PRODUCT_VIEW  |   NEWPRODUCT
>
> authenticated |  PRODUCT_VIEW  |   NEWPRODUCT
>

Those are the default permissions applied because products start being
private by default until admins unlock access to them .

>
> Any ideas of how to fix this so then when the users create a new product
> these permissions are added automatically?
>

For the moment that's the way BH works . I'll try to do something
about it in the next few days . I'll let you know asap when I have
something for you to try .

[...]

-- 
Regards,

Olemis - @olemislc

Apacheā„¢ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article: