Optimized hasRole() and add isAdmin override
Added hasRole() check to class edit/archive actions