After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749744 - Hide updates UI on managed systems
Hide updates UI on managed systems
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
: 749358 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-05-22 19:27 UTC by Matthias Clasen
Modified: 2015-06-13 17:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Hide updates UI on managed systems (14.45 KB, patch)
2015-05-22 19:27 UTC, Matthias Clasen
committed Details | Review

Description Matthias Clasen 2015-05-22 19:27:30 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.
Comment 1 Matthias Clasen 2015-05-22 19:27:38 UTC
Created attachment 303837 [details] [review]
Hide updates UI on managed systems
Comment 2 Matthias Clasen 2015-06-04 20:29:06 UTC
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
Comment 3 Matthias Clasen 2015-06-08 12:32:51 UTC
Attachment 303837 [details] pushed as 0974ae1 - Hide updates UI on managed systems
Comment 4 Allan Day 2015-06-08 20:50:06 UTC
(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.
Comment 5 Rafal Luzynski 2015-06-13 17:23:25 UTC
*** Bug 749358 has been marked as a duplicate of this bug. ***