craigfh Posted June 2, 2007 Share Posted June 2, 2007 I have setup my client with an admin account with minimum access. I have given him access to the shipping and it shows as available but when he tries to get into shipping it says Error 401: You do not have permission to access that page. Please ask one of the super users to grant this for you. He is setup in shipping to Read, Write, Edit and Delete. Does anyone know what is going on? The version we are running is 3.0.15.. thanks Craig Quote Link to comment Share on other sites More sharing options...
craigfh Posted June 6, 2007 Author Share Posted June 6, 2007 I am concerned that know one can answer this question. I have 12 shopping carts out there and clients that need to modify their shipping. Can't anyone explain why? Quote Link to comment Share on other sites More sharing options...
Guest Makes Posted June 14, 2007 Share Posted June 14, 2007 I have got the identical problem. I can only assume this is a Cubecart bug. I'm running version 3.0.16. I have installed a 'stock levels for product options' mod but can't see that affecting the permissions. Can anyone help with this? Quote Link to comment Share on other sites More sharing options...
Robsta Posted June 14, 2007 Share Posted June 14, 2007 I've just done a quick test to reproduce this, and if you set the 'settings' to 'read' the shipping page nolonger displays the permissions error. Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted June 14, 2007 Share Posted June 14, 2007 Well, this line: if(permission("settings","read")==FALSE){ header("Location: ".$GLOBALS['rootRel']."admin/401.php"); exit; } found in admin/modules/index.php is where the logic is checking to see if the user permission is correct or not. As a quick fix, delete the above code, or comment it out (Place a /* before and a */ after), so it's there for future reference. However, note that this will effectively allow this module to become accessible to anyone. In the mean time, I'm going to look into permissions more. Hopefully someone else may shed some light on them until I get more information. Quote Link to comment Share on other sites More sharing options...
Robsta Posted June 14, 2007 Share Posted June 14, 2007 Well, this line: if(permission("settings","read")==FALSE){ header("Location: ".$GLOBALS['rootRel']."admin/401.php"); exit; } found in admin/modules/index.php is where the logic is checking to see if the user permission is correct or not. As a quick fix, delete the above code, or comment it out (Place a /* before and a */ after), so it's there for future reference. However, note that this will effectively allow this module to become accessible to anyone. In the mean time, I'm going to look into permissions more. Hopefully someone else may shed some light on them until I get more information.Yea good idea. I see a slight bug here. With read permissions to the settings, I can change settings in the general settings. :whistle: Quote Link to comment Share on other sites More sharing options...
Guest Makes Posted June 14, 2007 Share Posted June 14, 2007 I don't want the client to see the rest of the 'settings' so changing to read is not an option unfortunately. I am adapting the code to totally hide the links that the user has no permissions for. Any further help is much appreciated. Quote Link to comment Share on other sites More sharing options...
Guest Makes Posted June 14, 2007 Share Posted June 14, 2007 I've just changed the code to if(permission("shipping","read")==FALSE){ header("Location: ".$GLOBALS['rootRel']."admin/401.php"); exit; } I would be surprised if this fixed it for all but seems to have solved my immediate problem :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.