Esempio n. 1
0
        public IEnumerable <ContentTypeFieldInfo> GetFields(int appId, string staticName)
        {
            Log.Add($"get fields for a:{appId} type:{staticName}");
            var permCheck = new MultiPermissionsTypes(SxcInstance, appId, staticName, Log);

            if (!permCheck.EnsureAll(GrantSets.WriteSomething, out var exp))
            {
                throw exp;
            }
            if (!permCheck.UserCanWriteAndPublicFormsEnabled(out exp))
            {
                throw exp;
            }

            return(_eavCtc.GetFields(appId, staticName));
        }
Esempio n. 2
0
 public IEnumerable <ContentTypeFieldInfo> GetFields(int appId, string staticName)
 {
     GetAppRequiringPermissionsOrThrow(appId, GrantSets.WriteSomething, staticName);
     return(_eavCtc.GetFields(appId, staticName));
 }
Esempio n. 3
0
 public IEnumerable <ContentTypeFieldInfo> GetFields(int appId, string staticName)
 => _eavCtc.GetFields(appId, staticName);
Esempio n. 4
0
 public IEnumerable <dynamic> GetFields(int appId, string staticName)
 {
     return(eavCtc.GetFields(appId, staticName));
 }
Esempio n. 5
0
 public IEnumerable <dynamic> GetFields(int appId, string staticName)
 => _eavCtc.GetFields(appId, staticName);