|
|
@ -1,5 +1,6 @@ |
|
|
|
''' Resources for account registraion and settings ''' |
|
|
|
''' Resources for account registraion and settings ''' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from pyramid.security import Allow, Authenticated, Everyone, Deny, DENY_ALL |
|
|
|
from pyramid.security import Allow, Authenticated, Everyone, Deny, DENY_ALL |
|
|
|
|
|
|
|
|
|
|
|
from ordr2.resources.base import BaseResource |
|
|
|
from ordr2.resources.base import BaseResource |
|
|
@ -31,5 +32,5 @@ class AccountResource(BaseResource): |
|
|
|
(Deny, Authenticated, 'register'), |
|
|
|
(Deny, Authenticated, 'register'), |
|
|
|
(Allow, Everyone, 'register'), |
|
|
|
(Allow, Everyone, 'register'), |
|
|
|
(Allow, Authenticated, 'settings'), |
|
|
|
(Allow, Authenticated, 'settings'), |
|
|
|
|
|
|
|
DENY_ALL |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|