#21 Fixed access to admin's pages

Fixed access to admin's pages.
Added test.
if whole project use old syntax y can use transpec to convert all