MCPcopy Create free account
hub / github.com/DEROFDN/Engram / setPermissions

Function setPermissions

functions.go:3362–3372  ·  view source on GitHub ↗

Set XSWD permissions to the local Graviton tree

()

Source from the content-addressed store, hash-verified

3360
3361// Set XSWD permissions to the local Graviton tree
3362func setPermissions() {
3363 data, err := json.Marshal(&cyberdeck.WS.global.permissions)
3364 if err != nil {
3365 logger.Errorf("[Engram] setPermissions: %s\n", err)
3366 } else {
3367 err = StoreEncryptedValue("XSWD", []byte("Globals"), data)
3368 if err != nil {
3369 logger.Debugf("[Engram] setPermissions: %s\n", err)
3370 }
3371 }
3372}
3373
3374// Set all noStore methods to XSWD Ask permission
3375func SetDefaultPermissions() (defaults map[string]xswd.Permission) {

Callers 1

layoutXSWDPermissionsFunction · 0.85

Calls 1

StoreEncryptedValueFunction · 0.85

Tested by

no test coverage detected