I'm trying to figure out this example from the book of 
requires_permission...

@auth.requires_permission('add', 'number')
def add(a, b):
    return a + b

def function_seven():
    return add(3, 4)

I put this code into controllers/default.py.  What additional auth db 
entries do I need to make this example work?  I guess "add" is the name of a 
permission that must be assigned to some group, but what is "number"? 
 (Currently, I get "Not authorized, access denied" when I try to connect to 
the page.)

Reply via email to