Ejemplo n.º 1
0
        public void ModifyFieldRights(SuperOffice.CRM.Security.FieldRights rights)
        {
            if (!Constants.EnableSale)
            {
                return;
            }

            _rightsManager.SignalEvent(Constants.SentryName.DevNet, Constants.SentryEntities.Sale, SentryState.BeforeModified, rights);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Modify rights associated with specified fields.
        /// </summary>
        /// <param name="rights">Rights object to modify.</param>
        /// <remarks>Use this method to change rights across fine-grained fields of information.</remarks>
        public void ModifyFieldRights(SuperOffice.CRM.Security.FieldRights rights)
        {
            if (!Constants.EnableContact)
            {
                return;
            }

            _rightsManager.SignalEvent(Constants.SentryName.DevNet, Constants.SentryEntities.Contact, SentryState.BeforeModified, rights);

            if (_sunIsNotShining)
            {
                rights[QueryInfo.MainTable.TextId] = RightsFactory.Get(EFieldRight.None, "But one can still modify department");
            }

            _rightsManager.SignalEvent(Constants.SentryName.DevNet, Constants.SentryEntities.Contact, SentryState.AfterModified, rights);
        }