mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixing default permissions in create_player
This commit is contained in:
parent
ac9c68b877
commit
938873ab23
1 changed files with 1 additions and 1 deletions
|
|
@ -538,7 +538,7 @@ def create_player(key, email, password,
|
|||
# custom given arguments potentially overrides the hook
|
||||
if permissions:
|
||||
new_player.permissions.add(permissions)
|
||||
elif not new_player.permissions:
|
||||
elif not new_player.permissions.all():
|
||||
new_player.permissions.add(settings.PERMISSION_PLAYER_DEFAULT)
|
||||
if locks:
|
||||
new_player.locks.add(locks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue