0
I have a problem I don’t know how to fix and I don’t know how to look.
I’m building a system in the php - laravel
.
This system will have user levels.
I’ve done all the registration, changes, user views, groups and permissions. However, I stuck in a part that I probably have to use javascript, but I have very basic knowledge in JS.
When it comes to adding a user, I have a SELECT with the groups (e.g. ADMIN, USERS...) and a checkbox list with the general permissions ( of all groups)... until then I can select the group and what premises I want.
But here’s what I needed to do: That when I selected (e.g. ADMIN) in select, JS already filled in all the permissions that ADMIN is entitled to, and then the user could manually select whether to want more permission or not.
I need to do this because when adding the user, I need to know which permissions are right for each group, so know which one to register.
I was able to resolve using AJAX requests.
– Fernando Herique Rubim Pioli
Thank you very much Evandro. Hugs
– Fernando Herique Rubim Pioli
I’m sorry, I just saw that reply, is there anything else I can help you with? Or is everything working as you wanted it to?
– evandrobm
Yes, I was not very familiar with php + js. Based on your comment you can go back and learn more about it. I saw that you can do a lot of cool things.
– Fernando Herique Rubim Pioli
Good guy, good study!
– evandrobm