HTTP API: add missing access verification for all API calls
This commit is contained in:
parent
2c7cc8c453
commit
33a516b14b
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ api_exec ( access_t *perm, const char *subsystem,
|
|||
return ENOSYS; // TODO: is this really the right error code?
|
||||
}
|
||||
|
||||
if (access_verify2(perm, ah->hook->ah_access))
|
||||
return EPERM;
|
||||
|
||||
/* Extract method */
|
||||
op = htsmsg_get_str(args, "method");
|
||||
if (!op)
|
||||
|
|
Loading…
Add table
Reference in a new issue