Added permissions and auth

Line is too long. [92/80]