Adding auth checks to resources