Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix a typo in permission docs

Klaus Zanders6da90018440a
diff --git a/docs/development/concepts/permissions/README.md b/docs/development/concepts/permissions/README.md
index 32c4dfc9e6b..b9d408173c3 100644
--- a/docs/development/concepts/permissions/README.md
+++ b/docs/development/concepts/permissions/README.md
@@ -132,7 +132,7 @@ user.allowed_in_any_work_package?(:view_work_package)
user.allowed_in_any_work_package?(:view_work_package, in_project: project)
```
-The same is true for global permissions using `user.allowed_globally?(permission)`. This will either test a global permission such as `:add_project`.
+The same is true for global permissions using `user.allowed_globally?(permission)`. This will test for a global permission such as `:add_project`.
Those methods will also aid the developer, when they are trying to request a permission in the wrong context. For example, when you try to check a global permission on a project, it will raise an `IllegalPermissionContextError`
@@ -203,7 +203,7 @@ before do
end
```
-This hooks into all permission checks (including the deprecated `allowed_to?` methods and methods like `allowed_in_any_project?`) that are executed on the user. **Scopes like `Project.visible`, `Project.allowed_to` and methods like `Authorization.roles` are _not_ mocked by this.** If you need one of those, you most likely want to throw things into the database and use one of the methods defined above.
+This hooks into all permission checks (including the deprecated `allowed_to?` methods and methods like `allowed_in_any_project?`) that are executed on the user. **Scopes like `Project.visible`, `Project.allowed_to` and methods like `Authorization.roles` are _not_ mocked by this.**
## Checking of permissions in Frontend