Fix actor
This commit is contained in:
parent
30bb803da2
commit
d314dc39a0
@ -7,7 +7,7 @@ export class RdDSheetUtility {
|
||||
const userRightLevel = game.user.isGM
|
||||
? CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER
|
||||
: document.getUserLevel(game.user);
|
||||
mergeObject(options, {
|
||||
let newOptions = {
|
||||
isGM: game.user.isGM,
|
||||
isOwned: document.parent ? true : false,
|
||||
editable: editable,
|
||||
@ -15,7 +15,8 @@ export class RdDSheetUtility {
|
||||
isLimited: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED,
|
||||
isObserver: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.OBSERVER,
|
||||
isOwner: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER
|
||||
});
|
||||
}
|
||||
mergeObject(options, newOptions);
|
||||
return options;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user