// LockProtectedEntries goes through the entire database and decrypts
// any Values in entries with protected=true set.
// Warning: Do not call this if entries are already locked
// Warning: Encoding a database calls LockProtectedEntries automatically
LockProtectedEntries goes through the entire database and decrypts
any Values in entries with protected=true set.
Warning: Do not call this if entries are already locked
Warning: Encoding a database calls LockProtectedEntries automatically
// LockProtectedEntries goes through the entire database and decrypts // any Values in entries with protected = true set . // Warning : Do not call this if entries are already locked // Warning : Encoding a database calls LockProtectedEntries automatically
func (db *Database) LockProtectedEntries() error {
	manager, err := db.GetStreamManager()
	if err != nil {
		return err
	}
	manager.LockProtectedGroups(db.Content.Root.Groups)
	return nil
}
func ( db * Database ) LockProtectedEntries ( ) error { manager , err := db . GetStreamManager ( ) if err != nil { return err } manager . LockProtectedGroups ( db . Content . Root . Groups ) return nil }
LockProtectedEntries goes through the entire database and decrypts
any Values in entries with protected=true set.
LockProtectedEntries goes through the entire database and decrypts any Values in entries with protected = true set .