function hasPermission(permission) {
  const permissions = getPermissions();
  return permissions.includes(permission);
}

function hasAnyPermission(permissionList) {
  const permissions = getPermissions();
  return permissionList.some(p => permissions.includes(p));
}

function hasAllPermissions(permissionList) {
  const permissions = getPermissions();
  return permissionList.every(p => permissions.includes(p));
}
