hasRole controller plugin

The controller plugin, with test