Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow oper override to set forwards anywhere #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

examknow
Copy link
Contributor

Closes #61 - applies suggestions from #117

@edk0
Copy link
Contributor

edk0 commented Oct 2, 2021

Thanks for the PR. So there's two reasons I suggested changing how get_channel_access is called. The first is that it's a step on the way to allowing override to work on channels you're not in in general, which might be a useful feature. But the one that's more directly relevant to this PR relates to module interaction. I think override should be aiming to report only if (a) the action was only allowed because of override, and (b) the action is going to go ahead. Using CHFL_OVERRIDE, while a bit of a hack, enables that quite nicely, since a high-priority hook (and honestly most of override should probably be using MONITOR rather than HIGHEST) can tell whether override was used (based on the alevel) and if the action is actually going to happen (based on the hook approval). While the rest of override is not doing this yet, that's the direction I think we should be going in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend oper:override to cover cmode +f
2 participants