X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-auth.c;h=6747c9eea51f6b3627c5349d7b66641f8454cd87;hb=e80c1a7ae27456d546e202b1c498e9337d42ce14;hp=4a3c445fdcf23c325d5c39e9d1563414b04db5a3;hpb=4521c1e7ae5371ab9d639adc617d17fb4e8ded0c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-auth.c b/src/afb-auth.c index 4a3c445f..6747c9ee 100644 --- a/src/afb-auth.c +++ b/src/afb-auth.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2016-2019 "IoT.bzh" * Author "Fulup Ar Foll" * Author José Bollo * @@ -62,7 +62,7 @@ int afb_auth_check(struct afb_xreq *xreq, const struct afb_auth *auth) int afb_auth_has_permission(struct afb_xreq *xreq, const char *permission) { - return afb_cred_has_permission(xreq->cred, permission, afb_context_uuid(&xreq->context)); + return afb_cred_has_permission(xreq->cred, permission, &xreq->context); } /*********************************************************************************/