Skip to content

Commit

Permalink
honeybee: Adjusted action plan resource access
Browse files Browse the repository at this point in the history
  • Loading branch information
DougLau committed Dec 9, 2024
1 parent ffd4cd6 commit 7cc4ff6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/action_plans.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ the **Next Phase**. *Hold Time* must be a multiple of 30 seconds.
| Access | Primary |
|--------------|-------------------------|
| 👁️ View | name |
| 💡 Manage | hold\_time, next\_phase |
| 🔧 Configure | hold\_time, next\_phase |

</details>

Expand Down
4 changes: 3 additions & 1 deletion honeybee/src/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ fn required_patch_manage(res: Res, att: &str) -> bool {
| (Res::Controller, "notes")
| (Res::Detector, "abandoned")
| (Res::Detector, "notes")
| (Res::DeviceAction, _)
| (Res::Dms, "device_request")
| (Res::Dms, "notes")
| (Res::Dms, "preset")
Expand All @@ -147,6 +148,7 @@ fn required_patch_manage(res: Res, att: &str) -> bool {
| (Res::RampMeter, "am_target")
| (Res::RampMeter, "pm_target")
| (Res::Role, "enabled")
| (Res::TimeAction, _)
| (Res::User, "enabled")
| (Res::User, "password")
| (Res::VideoMonitor, "notes")
Expand All @@ -173,7 +175,7 @@ fn required_post_operate(res: Res) -> bool {
fn required_post_manage(res: Res) -> bool {
use Res::*;
match res {
ActionPlan | MsgPattern | MsgLine => true,
ActionPlan | DeviceAction | MsgPattern | MsgLine | TimeAction => true,
_ => false,
}
}

0 comments on commit 7cc4ff6

Please sign in to comment.