Skip to content

Migrating to Leravel 2.1 Admin Accounts System

lera2od edited this page Aug 29, 2023 · 1 revision

Leravel 2.1 Admin Accounts system

The old admim account system was trash so we changed it.

New way

New way of using admin account is there is more than one account now. Every account has their own permissions, usernames and passwords.

Migrate

You just need to delete the old adminAccount.ini file and create a new adminAccounts.json file in the app directory. Then put the following json inside :

[
    {
        "username": "lera",
        "password": "test",
        "permissions": [
            "ROOT"
        ]
    }
]

How do I edit this?

Every part of leravel admin has a permission of its own you can easily change the user permisions using the new Users Manager in Tools. Permissions of pages come from leravel/admin/views/tools/tools.json tools enforce the permission rules automaticly but stuff outside of tools is hardcoded in their view file.

Clone this wiki locally