|
|
@ -47,7 +47,7 @@ class User(Base): |
|
|
|
@property |
|
|
|
@property |
|
|
|
def principal(self): |
|
|
|
def principal(self): |
|
|
|
''' returns the principal identifier for the user ''' |
|
|
|
''' returns the principal identifier for the user ''' |
|
|
|
return 'user:' + str(self.id) |
|
|
|
return 'user:' + self.user_name |
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
@property |
|
|
|
def role_principals(self): |
|
|
|
def role_principals(self): |
|
|
|