Browse Source

changed user principal from id to username

This decouples a order model more from a user
php2python
Holger Frey 7 years ago
parent
commit
2add325e5a
  1. 2
      ordr2/models/user.py

2
ordr2/models/user.py

@ -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):