readthedocs / ext-theme

Read the Docs drop in replacement site templates
2 stars 2 forks source link

Project: create form KO view seems unable to handle SSO org/users? #257

Closed agjohnson closed 8 months ago

agjohnson commented 11 months ago

I got some JS errors on the form when logged in as out SSO QA 1 user. This was in the prod beta, and the JS error mentioned a missing has_admin function/attribute.

I also noted other errors on the view with other users, so suspect there is a larger failure here.

12:12:01.200 Uncaught TypeError: r.has_admin is not a function
    is_locked https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/site.1542c0b7cef3.js:1
    yd https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:229
    zd https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:229
    ha https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:229
    $ https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:229
    e https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/site.1542c0b7cef3.js:1
    remote_repos https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/site.1542c0b7cef3.js:1
    knockout https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/site.1542c0b7cef3.js:1
    generateResults https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:148
    response https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:148
    onSuccess https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:148
    done https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:18
    c https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:229
    fireWith https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:229
    done https://readthedocsinc-static-ext-theme-prod.s3.amazonaws.com/readthedocsext/theme/js/vendor.f9b5f19faaea.js:18
2 site.1542c0b7cef3.js:1:39971