web-project-builder / expense-management-codeigniter-adminlte-php

A simple but powerful PHP script to manage your expenses with multi-user level and permission
37 stars 35 forks source link

Permissions for income and expense category is not setting #4

Open shahzheeb opened 6 years ago

shahzheeb commented 6 years ago

Hi,

I created a new user type and assigned income, expense, income category and expense category. When the user of that new user type logs in, they see income and expense but not income/expense category.

To fix this for now, I have to modify the value of data in permission table as: {"users":"users","Expenses":{"own_create":"1","own_read":"1","own_update":"1","own_delete":"1","all_read":"1","all_update":"1","all_delete":"1"},"Income":{"own_create":"1","own_read":"1","own_update":"1","own_delete":"1","all_read":"1","all_update":"1","all_delete":"1"}, "Expense Category":{"own_create":"1","own_read":"1","own_update":"1","own_delete":"1","all_read":"1","all_update":"1","all_delete":"1"}, "Income Category":{"own_create":"1","own_read":"1","own_update":"1","own_delete":"1","all_read":"1","all_update":"1","all_delete":"1"}}