Esempio n. 1
0
File: Form.cs Progetto: radtek/EMIP
        protected virtual JObject CheckPermision(PostInfo postInfo, string permString)
        {
            JObject rv = new JObject();

            NodePermision[] perms = YZSecurityHelper.ParseNodePermisions(permString);

            for (int i = 0; i < perms.Length; i++)
            {
                NodePermision perm = perms[i];
                rv[perm.ToString()] = (postInfo.NodePermision & perm) == perm;
            }

            return(rv);
        }
Esempio n. 2
0
File: Form.cs Progetto: radtek/EMIP
        protected virtual JObject CheckPermision(BPMConnection cn, int taskid, int stepid, string permString)
        {
            JObject rv = new JObject();

            NodePermision[] perms = YZSecurityHelper.ParseNodePermisions(permString);

            bool[] allows = BPMTask.TaskOptPermCheckExt(cn, taskid, stepid, perms);

            for (int i = 0; i < perms.Length; i++)
            {
                rv[perms[i].ToString()] = allows[i];
            }

            return(rv);
        }