Closed ronknight closed 3 years ago
Do you have any more information about this bug?
Hi,
I believe this is not a bug, it is a condition.
At line 20
of the InventorySystem/application/views/dashboard.php
file.
We have a variable saying that if the user is admin to display the content, if not they will not display anything.
Yes it is indeed based on a value that is stored on the database. I tried changing the database value of a regular user to the same value that a administrator would have but the stat boxes still don't show up even if the regular user is already converted to an admin.
At line 32 of the InventorySystem/application/controllers/Dashboard.php file.
$is_admin = ($user_id == 1) ? true :false;
Only user with user_id 1 is ever set to admin.
good catch @nitorplus. Thanks
Stat boxes only shows up when using the default user. Need to enable stat boxes for Admin Group.