The issue can be solved by modifying the getRights function to return the desired value directly instead of returning an array. This can be done by ac...