Forum

Please note that you can subscribe to the individual forums. A subscription for news only covers the news.

Notifications
Clear all

Quick question re: zzPermit, Permitif vs Forbid

2 Posts
2 Users
1 Likes
231 Views
0
Topic starter

Just want to confirm what I think I know:

If there is an active, started punishment forbidding a permission (eg Forbid=eat chocolate); and

A beforeprocedure in the permission sets a zzPermit flag; OR

the permission includes a PermitIf=(true condition). 

Will the Forbid from the punishment override the zzPermit or PermitIf?

 

Also:

If a single permission includes both a DenyIf and a PermitIf, and both are true, which one takes precedence? Is it based on the order they appear?

 

Thanks!

This topic was modified 3 months ago 2 times by hyacinth
2 Answers
1

A quick look at the code shows this sequence:

  1. zzPermit, zzDeny and zzCancel takes precedence over everything else.
  2. Forbid in an active punishment.
  3. Deny... keywords.
  4. Permission because of MaxWait
  5. Denial because of MinInterval
  6. PermitIf
  7. Pct

Sven

 

0
Topic starter

Thank you Sven! that's perfect 🙂