mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Fixed {{gh-user-can-admin}}
error due to not using .get
on proxy object
This commit is contained in:
parent
bea2d8c871
commit
313ff0b669
@ -6,7 +6,7 @@ import {helper} from '@ember/component/helper';
|
||||
// @param session.user
|
||||
|
||||
export function ghUserCanAdmin(params) {
|
||||
return !!(params[0].isOwnerOrAdmin);
|
||||
return !!(params[0].get('isOwnerOrAdmin'));
|
||||
}
|
||||
|
||||
export default helper(function (params) {
|
||||
|
Loading…
Reference in New Issue
Block a user