You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also we can use this helper function in all our core routes. permissions_check is just a proposal name, maybe there is something more easy to understand.
If permissions are passed a strings, the function can check they correspond to the actual resource and permission enums
P.S.: by reading the docs it is not always clear (even if clearly written) that cat in hooks and tools is the same as stray as an instance of StrayCat. I think this may lead to confusion and so it should be called everywhere cat
The text was updated successfully, but these errors were encountered:
Currently custom endpoints, when in need of auth, require to write something like:
Would be a great devx improvement to have this:
which is the same as the less elegant but way simpler
Also we can use this helper function in all our core routes.
permissions_check
is just a proposal name, maybe there is something more easy to understand.If permissions are passed a strings, the function can check they correspond to the actual resource and permission enums
P.S.: by reading the docs it is not always clear (even if clearly written) that
cat
in hooks and tools is the same asstray
as an instance ofStrayCat
. I think this may lead to confusion and so it should be called everywherecat
The text was updated successfully, but these errors were encountered: