mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
Revert "global: combine all permissions of the object tree"
This reverts commit 83bc033837.
This needs some more work.
This commit is contained in:
parent
0720e375a1
commit
4350bd624f
1 changed files with 2 additions and 8 deletions
|
|
@ -38,15 +38,9 @@ uint32_t pw_global_get_permissions(struct pw_global *global, struct pw_client *c
|
|||
{
|
||||
uint32_t perms = PW_PERM_RWX;
|
||||
|
||||
if (client->permission_func == NULL)
|
||||
return perms;
|
||||
|
||||
perms = client->permission_func(global, client, client->permission_data);
|
||||
|
||||
while (global != global->parent) {
|
||||
global = global->parent;
|
||||
if (client->permission_func != NULL)
|
||||
perms &= client->permission_func(global, client, client->permission_data);
|
||||
}
|
||||
|
||||
return perms;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue