sender = g_dbus_method_invocation_get_sender(invocation);
- // TODO map - privileges should be checked, just debugging purposes
- /*if (service_type == BT_CORE_SERVICE) {
+ if (service_type == BT_CORE_SERVICE) {
BT_DBG("No need to check privilege from bt-core");
} else if (__bt_service_check_privilege(service_function,
service_type, (const char *)sender) == FALSE) {
BT_ERR("Client don't have the privilege to excute this function");
result = BLUETOOTH_ERROR_PERMISSION_DEINED;
goto fail;
- }*/
+ }
if (request_type == BT_ASYNC_REQ
|| service_function == BT_OBEX_SERVER_ACCEPT_CONNECTION) {