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

You don't have permission to access. #1

Open makatok2 opened 7 years ago

makatok2 commented 7 years ago

Hi there,

I downloaded your php files for the expense management and followed the instal procedure as instructed. After installation, and inputting the correct information for my database, I typed in the correct path to access the user login page and got a blank page with the message "No input file specified." I looked online and it seemed as though it might be a .htaccess problem. I changed

RewriteRule ^(.*)$ index.php/$1 [L] to RewriteRule ^(.*)$ index.php?/$1 [L]

and everything seemed to work after.

However, when I log into the program using anything other than my admin user profile, I keep getting an error when I try to access the menus (expense, expense catergory, income, income category). The error message I get is "You don't have permission to access." I've tried everything, including recreating an admin profiile in the database and making sure they have full permission. But nothing is working.

Can you help? Would you know why only my admin profile can interact with the program but not the users I create, no matter their permission levels??

I'm trying to build a little budget tracker for a 12 Step Group, this is for people who are dealing with addictions and need a small program like this to keep track of their group's donations. THIS IS NOT FOR ANY PERSONAL GAIN. I'm doing this for free for them.

Thank you.

msuhels commented 7 years ago

Ok, Please provide me your email address.

thanks

On Mon, Apr 24, 2017 at 1:42 AM, makatok2 notifications@github.com wrote:

Hi there,

I downloaded your php files for the expense management and followed the instal procedure as instructed. After installation, and inputting the correct information for my database, I typed in the correct path to access the user login page and got a blank page with the message "No input file specified." I looked online and it seemed as though it might be a .htaccess problem. I changed

RewriteRule ^(.)$ index.php/$1 [L] to RewriteRule ^(.)$ index.php?/$1 [L]

and everything seemed to work after.

However, when I log into the program using anything other than my admin user profile, I keep getting an error when I try to access the menus (expense, expense catergory, income, income category). The error message I get is "You don't have permission to access." I've tried everything, including recreating an admin profiile in the database and making sure they have full permission. But nothing is working.

Can you help? Would you know why only my admin profile can interact with the program but not the users I create, no matter their permission levels??

I'm trying to build a little budget tracker for a 12 Step Group, this is for people who are dealing with addictions and need a small program like this to keep track of their group's donations. THIS IS NOT FOR ANY PERSONAL GAIN. I'm doing this for free for them.

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/web-project-builder/expense-management-codeigniter-adminlte-php/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AEbfFRv4sjb636C-TdV8-Az-zw3C6o93ks5ry7CpgaJpZM4NFhZv .

Cabji commented 7 years ago

Have gotten exactly the same results as @makatok2 above. Downloaded and installed on 20170606. I managed to find the .htaccess fix and got the install going but now have hit the same brick wall with the users not having permission to do anything.

Cabji commented 7 years ago

There seems to be a few alterations in the github code that doesn't exist in the ZIP file that comes from github. Instead of putting my changes into a fork on github, I have simply made a note in Evernote that outlines how to fix the issues found with the version that comes in the ZIP file:

http://www.evernote.com/l/AJ5dweOL2xRCv6hzXqKOH8n2Pf_6lQmUAN4/

There are some additional notes inthere on configuring the interface a little bit too. Maybe this will be helpful to someone in the future.

mabdullah4 commented 5 years ago

Adding line session_start(); in my_helper.php worked for me.

australopythecus commented 5 years ago

@Cabji thanks, super useful!