Refact admin
Fix admin with auth
Update role permission const
Rename package rule to rules
Add test for rules