You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/helpers/token/is-anonymous.js

9 lines
287 B

import { helper } from '@ember/component/helper';
import { get } from '@ember/object';
const ANONYMOUS_ID = '00000000-0000-0000-0000-000000000002';
export function isAnonymous(params, hash) {
return get(params[0], 'AccessorID') === ANONYMOUS_ID;
}
export default helper(isAnonymous);