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
This section will cover enhanced configuration of the server, which were previously not possible with the admin panel.
12
15
13
16
## 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
16
19
17
20
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.
18
21
22
+
<Steps>
19
23
1. Open DBeaver.
20
24
2. Connect to your database following the instructions below
21
25
:::note
@@ -29,22 +33,23 @@ For the sake of simplicity, we will use the [DBeaver](https://dbeaver.io/) datab
29
33
30
34
3. Open the `Database/sunrise/user` table.
31
35
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
+
<Asidetitle="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.
33
39
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:
36
41
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)
38
48
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`.
45
50
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>
48
52
49
53
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.
0 commit comments