GNOME Bugzilla – Bug 749744
Hide updates UI on managed systems
Last modified: 2015-06-13 17:23:25 UTC
It doesn't make sense to show the updates UI to a user who does not have the trigger-offline-updates privilege, so hide the Updates tab button in this case, and don't notify the user about available updates. If the user manages to open the updates tab anyway (e.g. by using the --mode=updates commandline option), tell him that updates are managed.
Created attachment 303837 [details] [review] Hide updates UI on managed systems
To test this, add if (action.id == "org.freedesktop.packagekit.trigger-offline-update") { return polkit.Result.NO; } to the javascript function in /usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules
Attachment 303837 [details] pushed as 0974ae1 - Hide updates UI on managed systems
(In reply to Matthias Clasen from comment #2) > To test this, add > > if (action.id == "org.freedesktop.packagekit.trigger-offline-update") { > return polkit.Result.NO; > } > > > to the javascript function in > > /usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules The patch works as expect for me, after following this.
*** Bug 749358 has been marked as a duplicate of this bug. ***