permissions.js
added possibility to see permissions using login