Add a check to be sure we don't check the same capability in user_has_cap.
Merge pull request #157 from markoheijnen/fix-jobs-capability-check

Add a check to be sure we don't check the same capability in user_has_cap. Fixes #154
Sorry this took a while, thanks @markoheijnen