Skip to content

Commit d8a6bfb

Browse files
committed
added logic to only allow APP, DEP or CTR to use the release tag function
1 parent 21c5751 commit d8a6bfb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

SituPlugin.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ inline void SituPlugin::OnFunctionCall(int FunctionId, const char* sItemString,
7878

7979
}
8080
if (FunctionId == TAG_FUNC_IFR_RELEASED) {
81-
if (strncmp(fp.GetControllerAssignedData().GetScratchPadString(), "RREQ", 4) == 0) {
82-
fp.GetControllerAssignedData().SetScratchPadString("RREL");
81+
82+
// Only allow if APP, DEP or CTR
83+
if (ControllerMyself().GetFacility() >= 5) {
84+
85+
if (strncmp(fp.GetControllerAssignedData().GetScratchPadString(), "RREQ", 4) == 0) {
86+
fp.GetControllerAssignedData().SetScratchPadString("RREL");
87+
}
8388
}
8489
}
8590
}

0 commit comments

Comments
 (0)