Cleaning up permissions system

creating more readability and uniformity by creating constants