Skip to content

Commit

Permalink
Merge pull request #205 from lakinduakash/dev
Browse files Browse the repository at this point in the history
Add wheel group in polkit rules
  • Loading branch information
lakinduakash authored Oct 18, 2021
2 parents 9fadf91 + ed7002d commit bcdd832
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scripts/policies/polkit.policy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</action>

<action id="org.opensuse.policykit.create-ap">
<message>Authentication is required to run the Wihotspot</message>
<message>Authentication is required to run the create_ap</message>
<icon_name>wihotspot</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/policies/polkit.rules
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit bcdd832

Please sign in to comment.