Permissions modal now closes