• Christian Kellner's avatar
    thunderbolt: only try to enroll if we are allowed · 1f864c90
    Christian Kellner authored
    Check via Polkit if the current user is actually allowed to enroll
    devices before trying to do so. If not, show a notification that
    explains that a system administrator needs to authorize the device.
    Clicking on the notification will guide the user to the thunderbolt
    control center panel. Before this patch, when the current user was
    not allowed to enroll a device a polkit dialog would pop up which
    is confusing because it did not contain any information why it was
    shown. This patch implements the behavior as designed (see [1],
    section "Multi-user environments").
    
    [1] https://wiki.gnome.org/Design/Whiteboards/ThunderboltAccess
    1f864c90
Name
Last commit
Last update
..
extensionPrefs Loading commit data...
gdm Loading commit data...
misc Loading commit data...
perf Loading commit data...
portalHelper Loading commit data...
ui Loading commit data...
js-resources.gresource.xml Loading commit data...
meson.build Loading commit data...
portal-resources.gresource.xml Loading commit data...
prefs-resources.gresource.xml Loading commit data...