Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to remove sink option from back end ?
deepus
New
I want to remove sink
option from back end in user role & permission
and from edit category
section. How can i do it?
Tagged:
0
This discussion has been closed.
Comments
The easiest way is to create a style sheet called customadmin.css and add it to your theme. Or add this to the admin.css
.CheckBoxGrid td input#Form_Permission38{
display:none;
}
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Permissions are set with PermissionModels function Define and there also is a function Undefine. I guess you could try something like that in a plugin:
and reverse that in the function OnDisable
But I'm not sure that this won't break anything...
Thank you vrijvlinder for your valuable reply and it is helpful. Thank you. Which is the view file which contain the sink option.? It will be help full for further works.
Where can i find
The path you see in your browsers address bar is /role/edit/X and it is part of the dashboard. So you can find the view in
/applications/dashboard/views/role/edit.php
Yes, Vanilla is that easy!
But don't change core files!
Nowhere. You would have to create either a theme hook (don't know much about that) or a plugin.
That is just a wild guess. Please don't test it on a live system.
EDIT: you would have to save that as /plugins/nosink/class.nosink.plugin.php
By the way: users that can change permissions can normally also enable/disable plugins.
May I ask why you want to do that?
Offtopic: my personal opinion is that a plugin like that is rubbish but I love the name and I would love the icon @vrijvlinder would create from such an ambiguity
Okay...
1. permission must be 'Vanilla.Discussions.Sink' and
2. it will not work for admins because a permission check for admins always results in "true" and
3. do you want to remove a feature because your custom theme broke it?!
If 3. is true, don't do that. Get your problem solved and don't search for workarounds that may sound promising. They are not. An unsolved error might lead to unforeseen problems at any time.
its not working
Maybe after all I'm a Crystal Ball candidate...
Well, is your motivation point 3 of my last posting? If so, I'd say you are looking for the answer to the wrong question.
You would also have to overwrite the sink method to do nothing.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I would simply hide it. Not sure why you want to remove it. When you hide it, make your it is unchecked.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
descriptive??? and the meaning of it is what?
you could delete the column from your permissions table, and it will disappear from dashboard for all roles. But will reappear on the next /utility/update or /utility/structure
but as everyone said, really makes no sense, just don't check it. why would you even care if it is in backend?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Maybe because in spanish the locale translations is literal ?
sink - fregadero which means kitchen sink should be ahogar which means to drown
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
maybe he thinks sink is like kitchen sink (like whole enchilada).
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
my final answer to
two pipe wrenches and elbow grease
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yea could be, in WP there is a button for the editor I used called kitchen sink. It basically was a toggle to hide a row of buttons.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
_@peregrin_e said
maybe he thinks sink is like kitchen sink
, do you think others are fool like you??