Enable passing of function for tab permissions