-
Notifications
You must be signed in to change notification settings - Fork 0
Migrating to Leravel 2.1 Admin Accounts System
lera2od edited this page Aug 29, 2023
·
1 revision
The old admim account system was trash so we changed it.
New way of using admin account is there is more than one account now. Every account has their own permissions, usernames and passwords.
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"
]
}
]
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.
Made with ❤️ by leraticarimarka
Want to learn more about me? Check out my github page!