Example #1
0
        /// <summary>
        /// The functions tests if a group is a special group which was created for
        /// PwdSahre only.
        /// </summary>
        /// <param name="group">The group we want to test.</param>
        /// <returns>True if the specified group was a special KeeShare group.</returns>
        private bool IsKeeShareFolder(PwDatabase database, PwGroup group)
        {
            Debug.Assert(group != null);

            //only three groups are interesting for us: "Users" / "Groups" / "SyncGroup"
            return(group.ParentGroup != null &&
                   (group.IsInsideParent(database.GetUsersGroup()) ||
                    group.IsInsideParent(database.GetGroupsGroup()) ||
                    group.IsInsideParent(database.GetSyncGroup())));
        }