# “最近使用的设备”部分受“canCheckEmails”保护，这似乎出乎意料

**URL:** <https://meta.discourse.org/t/recently-used-devices-section-is-guarded-by-cancheckemails-which-seems-unexpected/134871>\
**Category:** Development\
**Created:** [2019 年12 月 2 日 15:08 UTC](https://meta.discourse.org/t/recently-used-devices-section-is-guarded-by-cancheckemails-which-seems-unexpected/134871 "2019-12-02T15:08:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
发布日期： [2019 年12 月 2 日 15:54 UTC](https://meta.discourse.org/t/recently-used-devices-section-is-guarded-by-cancheckemails-which-seems-unexpected/134871/2 "2019-12-02T15:54:16Z")

</div>

我认为这里使用 `canCheckEmails` 是一个捷径，因为权限是相同的。

> [@Hooksmith](#):
>
> 看起来，如果将守卫替换为类似 `{{#if canCheckAuthTokens}}` 的内容会更合理。（它最初可以从 `canCheckEmails` 进行别名设置，作为一种快速修复方式，以便插件开发者在覆盖这些值时能够区分两者）

这听起来是个不错的方案——如果您有时间实现，我们将非常欢迎提交 PR。

---

_[View the full topic](https://meta.discourse.org/t/recently-used-devices-section-is-guarded-by-cancheckemails-which-seems-unexpected/134871)._
