# Fehlende Übersetzung auf der Bewertungsseite

**URL:** https://meta.discourse.org/t/missing-translate-in-review-page/262604
**Category:** Bug
**Tags:** size-s, review-queue
**Created:** [22. April 2023 um 15:04 UTC](https://meta.discourse.org/t/missing-translate-in-review-page/262604 "2023-04-22T15:04:37Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [25. April 2023 um 11:42 UTC](https://meta.discourse.org/t/missing-translate-in-review-page/262604/7 "2023-04-25T11:42:59Z")

</div>

Nur um gründlich zu sein, wurde es behoben in: 🥳

> <https://github.com/discourse/discourse/pull/21226>
>
> \# Context
> 
> https://meta.discourse.org/t/missing-translate-in-review-page/26260…4
> 
> !\[image\](https://user-images.githubusercontent.com/50783505/234089049-72332040-e7d5-4081-824a-b0b36e37187a.png)
> 
> An additional button was added as a result of https://github.com/discourse/discourse/commit/dd495a0e194928fb2a11a14ff9b3403f61df1259 which was intended to grant access to deleting reviewable from the API. 
> 
> We were being too flexible by only checking if the user was an admin
> 
> https://github.com/discourse/discourse/blob/012aaf0ba32890a93f913b469681792341198ecc/lib/guardian.rb#L237
> 
> where it should instead by scoped to check if the request was an API call.
> 
> \# Fix
> 
> https://github.com/discourse/discourse/pull/21226/files#diff-0a2548be4b18bd4ef2dffb3ef8e44984d2fef7f037b53e98f67abea52ef75aa2R237
> 
> \# Additions
> 
> Added a new guard of \`is\_api?\`
> 
> https://github.com/discourse/discourse/pull/21226/files#diff-0a2548be4b18bd4ef2dffb3ef8e44984d2fef7f037b53e98f67abea52ef75aa2R657-R660
> 
> In \`app/models/reviewable.rb\` we check if the user has the permissions to the destroy action via the \`Guardian\`. To do this we were instantiating a new \`Guardian\` class which then caused us to lose the context of the request. The request is a necessary component in the guard of \`is\_api?\` so we needed to pass the already defined Guardian from the \`app/controllers/reviewables\_controller.rb\` to the \`#perform\` method to ensure the request is present.

---

_[View the full topic](https://meta.discourse.org/t/missing-translate-in-review-page/262604)._
