5.3 You do not have permission to rescan any of the selected files.

Permalink
After upgrading to 5.3 I get permission errors.

Like for example with rescan in filemanager

"You do not have permission to rescan any of the selected files."

But also the sitemap is not loading in the dashboard.

Anyone any ideas?

MissMarvels
 
andrew replied on at Permalink Reply
andrew
Or as someone in the administrators group?

Otherwise your group or user may not have access to the edit that particular file.
MissMarvels replied on at Permalink Reply
MissMarvels
I did set all the rights to de files directory (777) so this should be enough isn't it?

The strange thing is that there was no problem until i did the upgrade tot 5.3 (from 5.2.1 )
MissMarvels replied on at Permalink Reply
MissMarvels
The exception in thrown at this location in the code:

$ch = Page::getByPath("/dashboard/sitemap");
$chp = new Permissions($ch);
if (!$chp->canRead()) {
   die(_("Access Denied."));
}


If i change $adm = $u->isSuperUser(); to true in the Permission object it does wok, but that's afcourse not what you want to do.
andrew replied on at Permalink Reply
andrew
can you login to your site as "admin" ? That account should always be there, and it should always let you do everything.

Have you created different groups and perhaps not given them access to the sitemap page?

Beyond that I'm wondering if something about your host isn't passing session along with in the AJAX calls. So your page views are logged in, but the AJAX calls are not. I've seen something like that before but am not really sure what the deal could be.
MissMarvels replied on at Permalink Reply
MissMarvels
I did some investigation, really i don't understand what goes wrong, but even a clean install fails. It is something with async calls. Somehow the permissions fail on that.

The fail's show for example at the chart on the dashboard, the sitemap, the rescan of images, adding groups to users. Everywhere a ajax/json call is done.
MissMarvels replied on at Permalink Reply
MissMarvels
For who is interested, or ever has the same problem.

It was a problem with async. calls. Because it was a temp environment cookie_domain variable wasn't set properly.
NToizer replied on at Permalink Reply
Hi, I'm having a similar problem (access denied on the Sitemap when logged in as "admin") but I don't understand how to fix it. I admit my programming knowledge isn't great. Could you provide more details on what I need to do to remedy the situation?

Thanks
MissMarvels replied on at Permalink Reply
MissMarvels
You service provider has to set the cookie_domain variable. It has something to do with a-synch calls over domains, When i explained this, my provider knew what to do.

If you like i might ask him...