fixed "hasRole" bug, and added additional operations logging
Merge remote-tracking branch 'origin/develop' into develop