What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Fixed "Manage Sales" button is shown in forums where sales is forbitten

wolven

New Member
Hi folks,

I have just one Sales Forum. In all other forums, sales is forbitten. I experience that ordinary users see the "manage sales" button in all forums. They can use it but this leads (as expected) to a permission error.
Bildschirmfoto 2021-08-26 um 09.44.15.png

What do I have to configure to make this go away? Or is this a bug?
I've already checked user group and element permissions. For me, it looks ok

Thanks
Knut
 
Last edited:
Hello,

Ordinary users are not expected to manage sales right ?

What happens if they click on the button ?

Clément
 
Bon jour, Clément,

Ordinary users are allowed to manage their own sales. But all sales are bound to just one forum. EDIT: Not generally. The user group has no seller right in general but in the sales forum. It's element depending.
If you press the button (it shows up in your own threads or when you are moderator) the you get the "Manage sales" overlay.
Ticking the box leads to an error (no permissions - as expected)Bildschirmfoto 2021-08-28 um 12.59.30.png
 
Last edited:
Bon jour, Clément,

I changed the following in the thread_view template modification.

From:
Code:
<xf:if is="$thread.canManageSale()">

to:

Code:
<xf:if is="$thread.canManageSale() AND $thread.isASale()">

and it works.

Cheers.
 
Hi,

Sorry I totally didn't see the first answer you had given me.

The modification you suggest seems correct, I'll mark this as a bug and change that in a future release

Clément
 
Top