0
I can create a new user role. But when I assign permission, it's giving an error and not able to save changes.
0
Hello,
I am not talking about database or any user permissions. I was talking permissions for the user roles in the MPS. You database as the permissions
table with all the role permissions data like read-sales
, create-sales
... update-sales
etc
We are fixing the reported issue and will release update this Friday.
Thank you
0
Hello,
I have checked the error logs and found that your database has issues. It doesn't have permissions data. Was there any error while installing the item? Please let me know the database access details to that I can confirm.
Thank you
0
I didn't have any errors while creating the database and installing the MPS. I again checked the permission in Cpanel and found "All privileges" was checked for the user. Anyway, it's a dev installation, I can reinstall and do it from scratch. I will let you know the fresh installation result.
Note: I installed another PHP web app in the same host after I installed MPS and its functioning without any issue
0
Good night friends, this same error is giving me, it does not assign me the roles and I do not see any errors when performing the installation and neither with the migrations, what can I do to solve it, thank you.
0
Hector Rojas Hello,
It's due to permissions's guard. I will fix this in coming update.
If you need it urgently, you can update the setPermissions
method in modules/MPS/Http/Controllers/RoleController.php
as following
public function setPermissions(Request $request, Role $role)
{
$permissions = $request->all();
$permissions = collect($permissions)->flatten()->all();
foreach ($permissions as $permission) {
Permission::updateOrCreate(['name' => $permission]);
}
$role->syncPermissions($permissions);
return response(['success' => true]);
}
Thank you
We use Cookies
We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.