Project

General

Profile

Actions

Bug #29943

open

Misleading message on viewing associated records

Added by Ondřej Pražák over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When a user does not have permission to view associated records, a query/mutation fails with no record found. It would be better to let user know about missing permissions instead.

Steps to reproduce:

See update mutation test for media - mutation should return data for associated operating systems. Change the test for non-admin user that tries to update a medium by assigning only permissions to view media. The error will be: No object found for `operatingsystemIds: "#{global_id}"` instead of unauthorized.


Related issues 1 (1 open0 closed)

Related to Foreman - Tracker #22109: Foreman should support a graphql apiNew

Actions
Actions #1

Updated by Ondřej Pražák over 4 years ago

  • Related to Tracker #22109: Foreman should support a graphql api added
Actions

Also available in: Atom PDF