0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

Update custom-wizard-admin.js.es6

Dieser Commit ist enthalten in:
Angus McLeod 2023-02-07 13:55:08 +01:00
Ursprung 7657149e6f
Commit 0cb76659e9

Datei anzeigen

@ -12,7 +12,10 @@ const GUEST_GROUP_ID = -1;
const CustomWizardAdmin = EmberObject.extend({ const CustomWizardAdmin = EmberObject.extend({
@discourseComputed("permitted.@each.output") @discourseComputed("permitted.@each.output")
allowGuests(permitted) { allowGuests(permitted) {
return permitted && permitted.filter((p) => p.output.includes(GUEST_GROUP_ID)).length; return (
permitted &&
permitted.filter((p) => p.output.includes(GUEST_GROUP_ID)).length
);
}, },
save(opts) { save(opts) {