mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
Fixed some bugs in the access system. Changed the "owner" default permission to "control" instead to more general. Added a new hook for setting locks for objects (the suspicion was that this would give lots of grief to newbies otherwise, now we have a lockdown policy in the absence of lock definitions).
This commit is contained in:
parent
295a82cc04
commit
bccd84e480
12 changed files with 115 additions and 124 deletions
|
|
@ -7,10 +7,9 @@ from src.objects.models import ObjAttribute, ObjectDB
|
|||
from django.contrib import admin
|
||||
|
||||
class ObjAttributeAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'db_key', 'db_value', 'db_mode', 'db_obj', 'db_permissions')
|
||||
list_display = ('id', 'db_key', 'db_value', 'db_mode', 'db_obj')
|
||||
list_display_links = ("id", 'db_key')
|
||||
ordering = ["db_obj", 'db_key']
|
||||
readonly_fields = ['db_permissions']
|
||||
search_fields = ['id', 'db_key', 'db_obj']
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
|
|
@ -21,7 +20,7 @@ class ObjectDBAdmin(admin.ModelAdmin):
|
|||
list_display = ('id', 'db_key', 'db_typeclass_path', 'db_location', 'db_player')
|
||||
list_display_links = ('id', 'db_key')
|
||||
ordering = ['id', 'db_typeclass_path']
|
||||
readonly_fields = ['db_permissions']
|
||||
readonly_fields = ['db_permissions', 'db_lock_storage']
|
||||
search_fields = ['^db_key', 'db_typeclass_path']
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue