Esempio n. 1
0
        protected virtual bool CheckPermission(DataObjectStore store, List <string> parameters, Variable variable)
        {
            string name = this.DataObjectName;

            if (variable != null)
            {
                name = (variable.RbacDataObjectName ?? this.DataObjectName);
            }
            string     cmdletRbacString = this.GetCmdletRbacString(store, parameters);
            ADRawEntry adrawEntry       = store.IsDataObjectDummy(name) ? null : (store.GetDataObject(name) as ADRawEntry);
            bool       flag             = base.RbacChecker.IsInRole(cmdletRbacString, adrawEntry);

            DDIHelper.Trace("Checking {0} on object {1}: {2}", new object[]
            {
                cmdletRbacString,
                (adrawEntry != null) ? adrawEntry.ToString() : string.Empty,
                flag
            });
            return(flag);
        }