nerdhaus / eldrich

Custom code and config for eldrich.host
11 stars 2 forks source link

Identity information not visible #21

Closed laufwerkfehler closed 7 years ago

laufwerkfehler commented 7 years ago

When logged in as end user, player character identity information is not visible on edit page.

eaton commented 7 years ago

Turned out to be a permissions issue with the small component sub-entities used to store equipped weapons, morph instances, identity information, and similar bits. People can always edit THEIR OWN, but with some of the initially imported characters (like the Whiskey PCs), they were imported by the system user and then reassigned to the players. The small component entities that make up some of the NPC/PC details didn't change ownership, and boomf.

For the time being, I've just ensured anyone with edit rights for a container entity (like an NPC) can also edit any component entity, which is pretty coarse but works okay. In the future I'll need to intercept save events on container entities and make sure that any sub-entities' owners are updated at the same time.