remove unused import
Add support for anonymous user having rights
fix namespace