How to define custom permissions for staff, admins, moderators

Moderator cannot create a categories and i want that