made some changes to the decorator check_permissions and the location of
it as well