We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c59347 commit b0507f0Copy full SHA for b0507f0
pfSense-pkg-API/files/etc/inc/api/framework/APIAuth.inc
@@ -129,7 +129,10 @@ class APIAuth {
129
public function authorize() {
130
# Local variables
131
$authorized = false;
132
- $client_config =& getUserEntry($this->username);;
+
133
+ # Starting with pfSense Plus 24.11, the client config is nested under an 'item' key. Handle both cases.
134
+ $client_config =& getUserEntry($this->username);
135
+ $client_config = (array_key_exists('item', $client_config)) ? $client_config['item'] : $client_config;
136
$this->privs = get_user_privileges($client_config);
137
138
# If no require privileges were given, assume call is always authorized
0 commit comments