currentUserHasViewAccess method
Implementation
bool currentUserHasViewAccess() {
if (routeInformation == null) return false;
if (routeInformation!.limitToRoles!.isEmpty) return true;
return routeInformation!.limitToRoles!
.where((role) =>
FlickerSecurity.currentUser!.role!.title == role.title)
.length >
0;
}