Duet3D / DuetWebControl

A completely new web interface for the Duet electronics
GNU General Public License v3.0
406 stars 228 forks source link

Fix for plugins with SBC permissions requirement #441

Closed LoicGRENON closed 1 year ago

LoicGRENON commented 1 year ago

this.pluginManifest.sbcPermissions is still an Array and not a Set as expected so when trying to install a plugin with SBC permission requirements, it fails because of this.permissions.has(SbcPermission.superUser) (Array has not has method).

Maybe a more proper fix would be to change the initObject from the ObjectModel TS library so this.pluginManifest.sbcPermissions is returned as Set<SbcPermission> type ?