Revert "global: combine all permissions of the object tree"

This reverts commit 83bc033837.

This needs some more work.
This commit is contained in:
Wim Taymans 2019-06-28 12:22:33 +02:00
parent 0720e375a1
commit 4350bd624f

View file

@ -38,15 +38,9 @@ uint32_t pw_global_get_permissions(struct pw_global *global, struct pw_client *c
{ {
uint32_t perms = PW_PERM_RWX; uint32_t perms = PW_PERM_RWX;
if (client->permission_func == NULL) if (client->permission_func != NULL)
return perms;
perms = client->permission_func(global, client, client->permission_data);
while (global != global->parent) {
global = global->parent;
perms &= client->permission_func(global, client, client->permission_data); perms &= client->permission_func(global, client, client->permission_data);
}
return perms; return perms;
} }