Fixed an issue with BridgeUser::hasPermission() not detecting permissions given to a user.
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.

searsaw/Drawbridge