adding the new permissions checking to second theme folder