Added the permission check for each leads table