Example #1
0
        protected virtual void VerifyModifiedValues(EntityRecord record)
        {
            var rights = record.UserPermissions;

            if (rights == null)
            {
                return;
            }
            var members = record.EntityInfo.Members;

            for (int i = 0; i < members.Count; i++)
            {
                var member = members[i];
                if (member.Kind != MemberKind.Column)
                {
                    continue;
                }
                if (record.Modified(member) && !rights.UpdateStrict.Allowed(member))
                {
                    //value was modified but update is not allowed for this member
                    AccessDenied(AccessType.UpdateStrict, record, member);
                }
            }
        }