Implemented access controls logic. Next: Test coverage.