Move HasPermission to the method + fix imports for latest command change