Skip to content

Commit 0d6c203

Browse files
committed
Fix for launch button not displaying
1 parent 97e19bf commit 0d6c203

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/tc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ export const checkAllowedRoles = roles =>
156156
*/
157157
export const checkReadOnlyRoles = token => {
158158
const roles = _.get(decodeToken(token), 'roles')
159+
if (checkAllowedRoles(roles)) {
160+
return false
161+
}
159162
return roles.some(val => READ_ONLY_ROLES.indexOf(val.toLowerCase()) > -1)
160163
}
161164

0 commit comments

Comments
 (0)