Revert "Corrected the param in set_permissions_rec"

This reverts commit eaffed9dc4c77e9a2b04f582cb84ad8353a59958.
This is the correct fix for the param in SetPermissionsRecursive