HasSpecialActions 除了Allow之外是否还有别的动作
()
| 128 | |
| 129 | // HasSpecialActions 除了Allow之外是否还有别的动作 |
| 130 | func (this *RuleSet) HasSpecialActions() bool { |
| 131 | for _, action := range this.Actions { |
| 132 | if action.Code != ActionAllow { |
| 133 | return true |
| 134 | } |
| 135 | } |
| 136 | return false |
| 137 | } |
| 138 | |
| 139 | // HasAttackActions 检查是否含有攻击防御动作 |
| 140 | func (this *RuleSet) HasAttackActions() bool { |
no outgoing calls
no test coverage detected