Role-based access control with javascript (incl. jquery plugin)