Component ignores groups access level

This is the place to post questions and comments about the FlexBanner component
macstalker
Posts: 10
Joined: Sat Feb 15, 2020 7:23 pm

Component ignores groups access level

Post by macstalker » Sat Feb 15, 2020 7:57 pm

Hi there,

To reproduce this issue:
1. Make sure you have default Guest access level (Means only guests suppose to have access to on the frontend)
2. From FlexBanners create Guests category and select Guest from Access dropdown.
3. Create new banner with Guests category.
4. Create appropriate module with default settings.
5. Check banner from the frontend as a guest, then login on the frontend and check again. Banner still visible :?

Same situation with any other access level, component completely ignores it. By the way, our module has Public access level to show all ads thru it. The only temporary workaround I see is to create multiple modules for each access level, which is very inconvenient if you have dozens access levels and module positions to display.

Thanks!

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Sun Feb 16, 2020 10:30 am

I'll need to look at this. FlexBanners is based on the standard Joomla Banners component and that does not respect the access level in this way.

I'll, take a look when I can but this is the first time anyone has wanted to use FlexBanners in this way. As you say, the normal way to achive this would be by using multiple modules.
Andrew998
Developer

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Wed Feb 26, 2020 3:22 pm

I'm close to having an implementation of this but, unfortunately, it has shown up a small issue with another part of the extension. Hopefully it won't be long though.
Andrew998
Developer

macstalker
Posts: 10
Joined: Sat Feb 15, 2020 7:23 pm

Re: Component ignores groups access level

Post by macstalker » Wed Feb 26, 2020 8:54 pm

Thanks for the update! I'm really appreciate your work to add this feature.

BTW, there is another nasty bug which affects few recent versions of FlexBanner: Images can not be uploaded at all. I've tried fresh installation of latest Joomla and latest FlexBanner. Tried under multiple configurations macOS/Debian, running php 7.2/7.4, nginx 1.16/1.17, browsers Safari/Firefox.

TypeError: document.adminForm.jform_imageurl.value.test is not a function in:

document.adminForm.jform_imageurl.value.test(/gif/g)
||document.adminForm.jform_imageurl.value.test(/png/g)
||document.adminForm.jform_imageurl.value.test(/jpg/g)

Another small bug /images/blank.png is missing after installation

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Thu Feb 27, 2020 2:55 pm

Strange, I'm not seeing the image upload problem in testing. I'll have to dig deeper.
Andrew998
Developer

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Thu Feb 27, 2020 4:43 pm

I'm going ahead with the release of 4.1.13 which honours the access levels.

I'll have to look at the upload issue seperately because, at present, I haven't managed to replicate the fault.
Andrew998
Developer

macstalker
Posts: 10
Joined: Sat Feb 15, 2020 7:23 pm

Re: Component ignores groups access level

Post by macstalker » Thu Feb 27, 2020 7:52 pm

Thanks, unfortunately after updating I've got error notice on the frontend and all banners gone.

×
Error

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IF((select count(distinct id) from `#__flexbanners` where `#__fle' at line 5

BTW, I can create account for you on one of my testing sites. Just give me your email
Last edited by macstalker on Thu Feb 27, 2020 8:03 pm, edited 1 time in total.

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Thu Feb 27, 2020 7:59 pm

Strange, it's all good in testing. You can reinstall 4.1.12 for now which should fix the initial problem.
Andrew998
Developer

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Thu Feb 27, 2020 8:51 pm

I can see the issue and I'll try and sort it out tomorrow.
Andrew998
Developer

Andrew998
Posts: 1422
Joined: Wed Jan 07, 2009 10:43 am

Re: Component ignores groups access level

Post by Andrew998 » Fri Feb 28, 2020 3:45 pm

I think I have it fixed but I can't access your site (blocked IP).

Can you try this please: https://www.inchhosting.co.uk/releases/flexbanner/com_flexbanners_4.1.13.zip
Andrew998
Developer

Post Reply