Fixed bugs with item display, equipment will now automatically move to the first property with the 'equipment' tag, carried items will move to the first property with the 'carried' tag
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { assertEditPermission } from '/imports/api/sharing/sharingPermissions.js';
|
||||
import getClosestPropertyAncestorCreature from '/imports/api/creature/creatureProperties/getClosestPropertyAncestorCreature.js';
|
||||
|
||||
export default function assertPropertyEditPermission(prop, userId){
|
||||
let creature = getClosestPropertyAncestorCreature(prop);
|
||||
assertEditPermission(creature, userId);
|
||||
}
|
||||
Reference in New Issue
Block a user