Bryan T
unread,Jun 18, 2025, 1:08:57 PMJun 18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to samvera-tech
Just wondering if anyone has a similar problem upgrading to Hyrax 4, it fails to load permission control so I can't create or edit any work.
application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:1712 Uncaught TypeError: t is not a constructor
at Object.permissions (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:1712:6058)
at Object.initialize (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:1712:4534)
at application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:1712:7240
at Object.activate (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:153:2136)
at HTMLDocument.<anonymous> (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:153:2498)
at e.dispatch (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:91:8599)
at n.notifyApplicationAfterPageLoad (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:92:9853)
at n.pageLoaded (application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:92:8241)
at application-270b57fdbba8a87c6ca02d597345b9092b56b4fc365a297a94d233b752a73062.js:92:4315
which corresponds to /usr/local/rvm/gems/ruby-2.7.8/gems/hyrax-4.0.0/app/assets/javascripts/hyrax/app.js.erb
permissions: function() {
var t = require("hyrax/permissions/control");
new t($("#share"),"tmpl-work-grant"),
new t($("#permission"),"tmpl-file-set-grant",{
with_visibility_component: !0
}),
new t($("#form_permissions"),"tmpl-work-grant"),
new t($("#collection_permissions"),"tmpl-collection-grant")
},