Fixed an issue with BridgeUser::hasPermission() not detecting permissions given to a user.

Running intval() on the permission ids in BridgeUser::getRolesWithPermission() allows BridgeUser::hasRole() to correctly look up each assigned role by detecting that it is being passed a numeric id and not a string role name.
Merge pull request #3 from jimstump/bug/permission-checking-by-name

BridgeUser::hasPermission() does not detect permissions given to a user.