File 40-default-webyast-roles.rules of Package rubygem-webyast-roles

// default permissions for "webyast" and "root" users

polkit.addRule(function(action, subject) {
  if ((action.id == "org.opensuse.yast.modules.yapi.roles.read"
    || action.id == "org.opensuse.yast.modules.yapi.roles.write"
    ) && (subject.user == "webyast" || subject.user == "root"))
  {
    return polkit.Result.YES;
  }
});    

// vim: syntax=javascript
openSUSE Build Service is sponsored by