qbcore-framework / qb-adminmenu

Admin Menu Using MenuV
GNU General Public License v3.0
43 stars 247 forks source link

[SUGGESTION] Saving permissions for restarts of the server #164

Closed linus-jansson closed 1 year ago

linus-jansson commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.

I've noticed that some commands for example reportr requires both qbcore.admin and the command ace. After setting the admin ace permission through the adminmenu it doesn't save between restarts unless you specificly hardcode that users licence to the config file.

Describe the feature you'd like A clear and concise description of what you want to happen. and with as much detail as possible how it would function in your opinion. Please try to keep it unique.

I would like the possability to save the ace permissions set through the adminmenu in a db table eg user_permissions to be able to load them in when a user reconnects to the server again after restart. This would make it a lot easier for server owners to handle a staff team and setting permissions automatically without keeping track of their licence etc. I also belive that as a framework this should be a pretty standard feature as the whole permission system is already implemented but not saved. From what I remember ESX lacked this feature and it would be pretty cool if qb built it in as an option.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered for people to have in mind just in case the main idea isn't liked but a derivative is.

Not really a alternative feature but it could be saved in the server.config but it will be a pain to handle a staff team for that purpose.

github-actions[bot] commented 1 year ago

This issue has had 60 days of inactivity & will close within 7 days