viewing permissions array empty. fixing