afb-auth: improve afb_auth_check_permission
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 4 Sep 2017 08:34:52 +0000 (10:34 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 7 Sep 2017 07:43:13 +0000 (09:43 +0200)
commit91c12808e08fb30e58a3d2e008569933f409d6db
treef4b94b1b5aa2ebf323aeb9e97d0b3cb0fad1dfc8
parent2f0f452807a35a01d879659adb217e1d9234585d
afb-auth: improve afb_auth_check_permission

The test was previously done in the caller but because
afb_auth_check_permission can now be called by other
callers, the test must be relocated.

Change-Id: I08a3a92afbe0b4dcfb223335b1e76b2d4aff005f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-auth.c