test(album,cabana,pier,surf,admin): add Phase 37 test suites and fail-closed check-phase37.sh gate
This commit is contained in:
@@ -1167,9 +1167,9 @@ func newConformEnv(t *testing.T) *conformEnv {
|
||||
login := "conform-" + stamp
|
||||
insertAdmin(t, gdb, login, login+"@example.test", adminTestPassword, true, false)
|
||||
// The Plugins screen needs backend.view_plugins, which no role holds.
|
||||
// Mail image routes need either mail permission (conform is not a superuser).
|
||||
// Mail image and Media Library routes need their respective permissions (conform is not a superuser).
|
||||
if err := gdb.Exec(`UPDATE backend_users SET permissions = ? WHERE login = ?`,
|
||||
`{"backend.view_plugins":1,"system.manage_mail_templates":1,"system.manage_mail_layouts":1}`, login).Error; err != nil {
|
||||
`{"backend.view_plugins":1,"system.manage_mail_templates":1,"system.manage_mail_layouts":1,"media.view_media":1,"media.manage_media":1}`, login).Error; err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user