You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* New translations privileges.md (Japanese)
* New translations privileges.md (Japanese)
* New translations privileges.md (Japanese)
* New translations privileges.md (Japanese)
A permission is the ability to do an action on a resource. For example, *execute the ds.myTable.myFunction()* represents a **permission**. Permissions are defined for the project in the [`roles.json`](#rolesjson-file)file. Each permission can be given to one or more [privileges](#privileges-and-roles).
When**no specific permission**has been defined for a resource, access to the resource may be automatically **unrestricted**or**restricted**depending on the [default mode defined for the project](#restriction-modes).
|**promote**| n/a | n/a | n/a | 関数の実行に指定の権限を関連付けます。 The privilege is temporary added and removed at the end of the function execution. セキュリティ上、セッション全体ではなく、当該関数を実行するプロセスのみに権限が追加されます。 |
-An [alias](./ordaClasses.md#alias-attributes-1)can be read as soon as the session privileges allow the access to the alias itself, even if the session privileges do no allow the access to the attributes resolving the alias.
60
-
-A [computed attribute](./ordaClasses.md#computed-attributes-1)can be accessed even if there are no permissions on the attributes upon which it is built.
-You can set/remove the **promote** action dynamically to a web process using the [`promote()`](../API/SessionClass.md#promote)and[`demote()`](../API/SessionClass.md#demote)functions.
For example, if you want to apply a permission to the following function:
92
+
例えば、以下の関数にパーミッションを適用したい場合を考えます:
93
93
94
94
```4d
95
95
// cs.CityEntity class
@@ -104,7 +104,7 @@ Class extends Entity
104
104
"applyTo":"City.getPopulation"
105
105
```
106
106
107
-
It means that you cannot use the same function names in the various ORDA classes (entity, entity selection, dataclass) if you want them to be assigned privileges. In this case, you need to use distinct function names. For example, if you have created a "drop" function in both `cs.CityEntity`and`cs.CitySelection`classes, you need to give them different names such as `dropEntity()` and `dropSelection()`. You can then write in the "roles.json" file:
For example, if you want to apply a permission to the following function:
159
+
例えば、以下の関数にパーミッションを適用したい場合を考えます:
160
160
161
161
```4d
162
162
// cs.CityEntity class
@@ -170,7 +170,7 @@ Class extends Entity
170
170
"applyTo":"City.getPopulation"
171
171
```
172
172
173
-
It means that you cannot use the same function names in the various ORDA classes (entity, entity selection, dataclass) if you want them to be assigned privileges. In this case, you need to use distinct function names. たとえば、`cs.CityEntity` および `cs.CitySelection` クラスの両方に "drop" 関数を作成するのであれば、`dropEntity()`、`dropSelection()` といった具合に別々の関数名を設定する必要があります。 You can then write in the "roles.json" file:
0 commit comments