setHaveRight method

dynamic setHaveRight(
  1. dynamic actionData,
  2. dynamic context
)

Implementation

setHaveRight(actionData, context) {
  myLogAll('setHaveRight');
  List roleList = List.of(actionData);
  Set roleSet = {};
  for (int i = 0; i < roleList.length; i++) {
    roleSet.add(roleList[i]);
  }
  setGlobalParam([gRole], [roleSet]);
}