Пример #1
0
 /// <summary>
 /// 是否有某个操作的权限
 /// </summary>
 /// <param name="module"></param>
 /// <param name="operation"></param>
 /// <returns></returns>
 public static bool HasOperation(ModuleMeta module, ModuleOperation operation)
 {
     return Provider.HasOperation(module, operation);
 }
 protected override bool HasOperation(ModuleMeta module, ModuleOperation operation)
 {
     return HasModuleOperation(module.KeyLabel, string.Empty, operation.Name);
 }
Пример #3
0
 /// <summary>
 /// 是否有某个操作的权限
 /// </summary>
 /// <param name="module"></param>
 /// <param name="operation"></param>
 /// <returns></returns>
 internal protected virtual bool HasOperation(ModuleMeta module, ModuleOperation operation)
 {
     return true;
 }