Skip to content

Commit c97ad1b

Browse files
committed
feat: Use steps in "Enhanced Configuration" and fix aside title not being parsed
1 parent 36c0c16 commit c97ad1b

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

src/content/docs/deprecated/enchanced-configuration.mdx

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ sidebar:
88
variant: caution
99
---
1010

11+
import { Steps } from '@astrojs/starlight/components';
12+
import { Aside } from '@astrojs/starlight/components';
13+
1114
This section will cover enhanced configuration of the server, which were previously not possible with the admin panel.
1215

1316
## Update your own privileges (Using direct database change)
@@ -16,6 +19,7 @@ Before we can access the admin panel, we need to update our own privileges. This
1619

1720
For the sake of simplicity, we will use the [DBeaver](https://dbeaver.io/) database management tool, but you can use any other tool that supports MySQL databases.
1821

22+
<Steps>
1923
1. Open DBeaver.
2024
2. Connect to your database following the instructions below
2125
:::note
@@ -29,22 +33,23 @@ For the sake of simplicity, we will use the [DBeaver](https://dbeaver.io/) datab
2933

3034
3. Open the `Database/sunrise/user` table.
3135
4. Find your user in the list, and double-click on it's `Privilege` value.
32-
5. Update it using the following table:
36+
5. Update it to the new value depending on the privileges you want to have. For example, to have admin privileges, set it to `8`.
37+
<Aside title="Privilege Levels and how to calculate them">
38+
To calculate the privilege level, you should sum the values of the privileges you want to grant.
3339

34-
:::note Privilege Levels and how to calculate them
35-
To calculate the privilege level, you should sum the values of the privileges you want to grant.
40+
Current privileges are:
3641

37-
Current privileges are:
42+
- `0` - User
43+
- `1` - Supporter
44+
- `2` - Bat (Beatmap Approval Team)
45+
- `8` - Administrator
46+
- `16` - Developer
47+
- `512` - Super User (Can use server maintenance commands)
3848

39-
- `0` - User
40-
- `1` - Supporter
41-
- `2` - Bat (Beatmap Approval Team)
42-
- `8` - Administrator
43-
- `16` - Developer
44-
- `512` - Super User (Can use server maintenance commands)
49+
For example, if you want to grant Bat and Administrator privileges, you would sum `2` (Bat) and `8` (Administrator), resulting in `10`.
4550

46-
For example, if you want to grant Bat and Administrator privileges, you would sum `2` (Bat) and `8` (Administrator), resulting in `10`.
47-
:::
51+
</Aside>
4852

4953
6. Click on the `Apply cell changes` button (or press `Ctrl + S`).
50-
7. Changes will be applied during a minute or so, and you will be able to access the admin panel.
54+
7. Changes will be applied during a minute or so, and you will be able to access the admin panel.
55+
</Steps>

0 commit comments

Comments
 (0)