Commit eef58e5
authored
Fix hiding tobira tab in series create modal (#1122)
In the series create modal, we query ´/admin-ng/series/new/tobira/page`
to check if Tobira is available. However, if the user does not have the
role required for that endpoint (ROLE_UI_SERIES_DETAILS_TOBIRA_EDIT),
the endpoint will return an error html page which we are not expecting,
causing the ui to crash.
This fixes the problem by checking if the user has the required role to
make the request to the endpoint. If the user does not have the role,
the tobira tab is then not shown.1 parent 1f39761 commit eef58e5
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments