H
Homarr3mo ago
Krispy

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:
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
Jump to solution
31 Replies
Cakey Bot
Cakey Bot3mo ago
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?
Wanhack
Wanhack3mo ago
Do you mean that you don't want to add the pihole app onto the board?
Krispy
KrispyOP3mo ago
I mean when I do, the start and stop all buttons don't appear unless you are an admin.
Wanhack
Wanhack3mo ago
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
Krispy
KrispyOP3mo ago
No description
No description
Krispy
KrispyOP3mo ago
One on left logged in with user in admin group. One on the right not in admin group.
Wanhack
Wanhack3mo ago
No description
Krispy
KrispyOP3mo ago
That's set The difference between the two screenshots is the group. Literally removed admik role.
Krispy
KrispyOP3mo ago
No description
Krispy
KrispyOP3mo ago
No description
Wanhack
Wanhack3mo ago
No description
Wanhack
Wanhack3mo ago
No description
Wanhack
Wanhack3mo ago
Could be a quirk of having 2 pihole integrations Can you test out with only one?
Krispy
KrispyOP3mo ago
Looks the same for you. 3 buttons at top disappear
Wanhack
Wanhack3mo ago
I just disabled and enabled the show and disable button
Krispy
KrispyOP3mo ago
Ah Lemme try Tried removing the second entry, no difference.
Krispy
KrispyOP3mo ago
Just dug into the source, looks like that's intentional.
No description
Krispy
KrispyOP3mo ago
Odd that it still shows the individual pause buttons per server in that case though. Well, pause button still visible, just not "pause all"
Meierschlumpf
Meierschlumpf3mo ago
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
Krispy
KrispyOP3mo ago
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?
Meierschlumpf
Meierschlumpf3mo ago
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
Serenaphic
Serenaphic3mo ago
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.
Krispy
KrispyOP3mo ago
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.
Serenaphic
Serenaphic3mo ago
They can pause individually?? Well, they shouldn't. That's weird
Krispy
KrispyOP3mo ago
Yep, sure can. At least the button is actionable ans dialog comes up. Don't remember if it actually worked.
Serenaphic
Serenaphic3mo ago
The action can't work, it's an admin procedure so the backend will just refuse it
Krispy
KrispyOP3mo ago
I'll verify in a moment
Serenaphic
Serenaphic3mo ago
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
Krispy
KrispyOP3mo ago
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
Serenaphic
Serenaphic3mo ago
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
Serenaphic
Serenaphic3mo ago
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
Want results from more Discord servers?
Add your server