I am wonder you are checking true value in array for is_manage?. If one user is manager in one project and member of other project then also this method return true value. Also add spec for that