box: check permissions on constraint functions on creation
Function execution permissions should only be checked on constraint creation. So when the function is used to check a tuple access rights don't have to be checked on each call for the current user. Closes #7873 NO_DOC=bugfix (cherry picked from commit 6b8f2c5f)
Showing
- changelogs/unreleased/gh-7873-func-priv-check.md 4 additions, 0 deletionschangelogs/unreleased/gh-7873-func-priv-check.md
- src/box/tuple_constraint_func.c 3 additions, 2 deletionssrc/box/tuple_constraint_func.c
- test/box-luatest/gh_7873_func_perm_check_test.lua 62 additions, 0 deletionstest/box-luatest/gh_7873_func_perm_check_test.lua
Please register or sign in to comment