PiHole Widget
Is there a way to allow the pihole widget to have the stat and stop all buttons for non admins? I'd like to give my wife an easy button to disable add blocking without her having to have admin.
Solution:Jump to solution
It was merged into dev, it'll be present fixed in the next minor version. I'll close the ticket and thanks again for reporting
31 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Do you mean that you don't want to add the pihole app onto the board?
I mean when I do, the start and stop all buttons don't appear unless you are an admin.
You only need an API key for the widget
it might point to the admin panel, but you don't need to be logged in
It should just show her a login page if she clicks on it, but without knowing the password she won't be able to get in the admin panel
One on left logged in with user in admin group. One on the right not in admin group.
That's set
The difference between the two screenshots is the group. Literally removed admik role.
Could be a quirk of having 2 pihole integrations
Can you test out with only one?
Looks the same for you.
3 buttons at top disappear
I just disabled and enabled the show and disable button
Ah
Lemme try
Tried removing the second entry, no difference.
Just dug into the source, looks like that's intentional.
Odd that it still shows the individual pause buttons per server in that case though.
Well, pause button still visible, just not "pause all"
Hey, as there will be an advanced permission system in Homarr 1.0 you'll be able to do so there. Other than that it's currently not possible
Ok, thanks. I'm new to homarr (or should I say recently returned after having been on homepage for while). Is there a roadmap for homarr anywhere?
There once was, but right now not really. We are working on v1.0 as said. If you want to try it out as early adopter, let us know in #🚀・insider , just be aware that it's not ready for production use
Hey, quickly interjecting here. Controls not showing for non admin is normal, since we don't have advanced permissions it was too complicated to properly do the system in which you could select whom had access to the controls, and so we decided that by default, only admins should.
Makes sense, at this point just an inconsistency. Non admin can pause each pihole individually, can't stop them at all, but pause all button not shown. So, in summary, can pause individually, but not pause all.
They can pause individually?? Well, they shouldn't. That's weird
Yep, sure can.
At least the button is actionable ans dialog comes up. Don't remember if it actually worked.
The action can't work, it's an admin procedure so the backend will just refuse it
I'll verify in a moment
But the front end was supposed to reflect that by actually not having the button actionable, it's still there but non actionable, as to give the information on it's current state
Confirmed, it doesn't do anything, but it does bring dialog up and allow a non admin to enter tine and submit the form.
That's for the info
Oh I get it now. The main button, on which the status is written, should work as intended. It's the newly added timed toggle that is still present
Yeah, I see it now
This was already corrected in V1.0 actually. I can make a quick fix for the next version of 0.15
Solution
It was merged into dev, it'll be present fixed in the next minor version. I'll close the ticket and thanks again for reporting