diff --git a/src/scripts/policies/polkit.policy b/src/scripts/policies/polkit.policy index abcb5bd..c9453bb 100644 --- a/src/scripts/policies/polkit.policy +++ b/src/scripts/policies/polkit.policy @@ -19,7 +19,7 @@ - Authentication is required to run the Wihotspot + Authentication is required to run the create_ap wihotspot auth_admin diff --git a/src/scripts/policies/polkit.rules b/src/scripts/policies/polkit.rules index e84b065..4f6558c 100644 --- a/src/scripts/policies/polkit.rules +++ b/src/scripts/policies/polkit.rules @@ -1,8 +1,8 @@ -/* Allow users in admin group to run GParted without authentication */ +/* Allow users in admin group to run create_ap without authentication */ polkit.addRule(function(action, subject) { if ( action.id == "org.opensuse.policykit.create-ap" ) { - if (subject.isInGroup("sudo")) { + if (subject.isInGroup("sudo") || subject.isInGroup("wheel")) { return polkit.Result.YES; } else { return polkit.Result.AUTH_ADMIN;