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
Copy file name to clipboardExpand all lines: blog-posts/en/using-asp.net-zero-with-devextreme-angular-part-4.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ Update-Database
216
216
217
217
**It's finished**! We can test the application. Run the project, **login** as the **host admin** (click Change link and clear tenancy name) shown below:
218
218
219
-
<imgsrc="/Images/Blog/login-as-host-3.png"alt="Login as host"class="img-thumbnail"style="width:100.0%" />
219
+
<imgsrc="/Images/Blog/login-as-host-7.png"alt="Login as host"class="img-thumbnail"style="width:100.0%" />
220
220
221
221
Default **admin** password is **123qwe**. After login, we see the **tenant list** which only contains a **default** tenant. We can create a new tenant:
Copy file name to clipboardExpand all lines: blog-posts/en/using-asp.net-zero-with-devextreme-mvc-part-4.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ Update-Database
180
180
181
181
**It's finished**! We can test the application. Run the project, **login** as the **host admin** (click Change link and clear tenancy name) shown below:
182
182
183
-
<imgsrc="/Images/Blog/login-as-host-3.png"alt="Login as host"class="img-thumbnail"style="width:100.0%" />
183
+
<imgsrc="/Images/Blog/login-as-host-7.png"alt="Login as host"class="img-thumbnail"style="width:100.0%" />
184
184
185
185
Default **admin** password is **123qwe**. After login, we see the **tenant list** which only contains a **default** tenant. We can create a new tenant:
Copy file name to clipboardExpand all lines: docs/en/Developing-Step-By-Step-Angular-Adding-New-Menu-Item.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,14 @@ Open PhoneBookDemo.xml (the **default**, **English** localization dictionary) an
24
24
25
25
```xml
26
26
<textname="PhoneBook">Phone Book</text>
27
+
<textname="PhoneBooksHeaderInfo">Phone Book Details</text>
27
28
```
28
29
29
30
If we don't define "PhoneBook"s value for other localization dictionaries, default value is shown in all languages. For example, we can define it also for Turkish in `PhoneBookDmo-tr.xml` file:
Note: Any change in server side (including change localization texts) requires recycle of the server application. We suggest to use Ctrl+F5 if you don't need to debugging for a faster startup. In that case, it's
Unique name of this permission is "**Pages.Tenant.PhoneBook**". While you can set any string (as long as it's unique), it's suggested to use that convention. A permission can have a localizable display name: "**PhoneBook**" here. (See "Adding a New Page" section for more about localization, since it's very similar). Lastly, we set this as a **tenant** level permission.
@@ -71,7 +71,7 @@ new AppMenuItem("PhoneBook", 'Pages.Tenant.PhoneBook', "flaticon-book", "/app/ma
71
71
72
72
So, how we can enter the page now? Simple, go to **Role Management** page and edit **admin** role:
We see that a **new permission** named "**Phone book**" added to **permissions** tab. So, we can check it and save the role. After saving, we need to **refresh** the whole page to refresh permissions for the current user. We could also grant this permission to a specific user. Now, we can enter the Phone book page again.
77
77
@@ -81,17 +81,17 @@ While a permission for a page is useful and probably always needed, we may want
81
81
82
82
### Define the Permission
83
83
84
-
Defining a permission is similar (in the `AppAuthorizationProvider` class):
84
+
First permission was defined before. In the second line, we are creating a child permission of first one. Remember to create a constant in `AppPermissions` class:
First permission was defined before. In the second line, we are creating a child permission of first one. Remember to create a constant in `AppPermissions` class:
90
+
Defining a permission is similar (in the `AppAuthorizationProvider` class):
0 commit comments