示例#1
0
        private static SecurityModel getUserPermission(string module)
        {
            //grab info from db

            SecurityModel sec = new SecurityModel();
            sec.setAllowReadWrite();
            return sec;
        }
示例#2
0
 private static bool checkAllowToAccessModule(SecurityModel model)
 {
     if (model.allowVisit && model.isVisible)
         return true;
     return false;
 }