-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not authorized to edit Layers even as Admin #369
Comments
I actually discovered this same issue this morning. I tried other admin accounts and got the same message, effectively removing our ability to use layers at all. |
Have you found a solution? |
What version are you using. I am unable to reproduce this in v1.9.9. |
1.2.7 |
I have not found a solution yet. I am using the latest version of the calendar. None of my admin accounts can access layers. They all receive the "You are not authorized!" message. |
me neither. would love to find a solution to this! |
I thought mine does. |
I'm not sure exactly which page you mean that displays the authorization hint. What is the exact path in the address bar? |
The link is: /calendar/layers.php |
If you have access to the database, can you please check if the the admin user has all access permissions. You can do this in MySQL with the statement or for example in phpMyAdmin, look in table webcal_access_function in the row for user admin. If there is a 'N' between the 'Y's, your admin user has not all permissions. |
Yep, they are all set to "YYYYYYYYYYYYYYYYYYYYYYYYYYYY" on my Admin Account |
and the login name is 'admin'? |
No the login name is my username (there is no username named "admin") but in the 'webcal_user' row the column 'cal_is_admin' is set to Y |
Sorry, but then I don't know what to do. I would try to debug starting from the layers.php file. I would try something like this line This shows you the value of parameter $ALLOW_VIEW_OTHER in the browser console. |
Thanks for your suggestion Max.
|
The obove javascript debug line writes the output in the console, not in the browser itself. I made this so complicated because the HTML output is not changed and other users are not disturbed by the debugging. If you can change the HTML output without disturbing other users, then it is of course easier to simply use an echo command instead of the cryptic javascript debug line. If you are using V1.2.7 the lines should be in lines number 48 and 49. I assume the line "echo print_not_auth" gives the error message "!!!You are not authorized" if the variable "$ALLOW_VIEW_OTHER" is not 'Y'. To check this, you can simply insert the line |
By adding that line I get: $ALLOW_VIEW_OTHER = N |
Hello, I am having an issue with LAYERS.
I am the ADMIN but when I click on ADMIN>Layers I get a message that says:
"!!!You are not authorized" and I am unable to add or even view the current layers.
Can somebody help me get access to this feature, please?
Thank you
The text was updated successfully, but these errors were encountered: