Skip to content
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

Create copy - Incorrect permissions #276

Open
tstoco opened this issue May 17, 2021 · 1 comment
Open

Create copy - Incorrect permissions #276

tstoco opened this issue May 17, 2021 · 1 comment

Comments

@tstoco
Copy link

tstoco commented May 17, 2021

Summary

A config file without the correct permissions is parsed by weathermap PHP editor.

Weathermap 0.98a

How to reproduce?

A user without permissions to write files for the www-data group creates a file inside the folder: \weathermap\configs

image

Although the file is not listed as an option to be opened it is listed in the dropdown menu that creates a copy of an existing config.

image

Therefore clicking into create copy weathermap creates a new config from a file without the correct permissions.

@howardjones
Copy link
Owner

howardjones commented May 17, 2021

What is incorrect? The file is readable (all that is needed to make a copy) and the www-data user can write to ./configs to make the new file. read-only files can be copied. It doesn't appear in the editor, because you can't edit it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants