1 Peak Security
Here's a brief example of how to use peak security.
1.1 A short example
from peak.api import *
burnBuilding = Owner
print "Burn baby burn"
rules = Items(
checkCanBurn = [Owner.of(Building)]
def checkCanBurn(self, attempt):
if attempt.user is attempt.subject.owner:
"You are not allowed to burn that building"