This issue is more like suggestion and if this is right behaviour from my side - to discuss
This tool is very useful for me cause I recreating a lot features every day on many projects. Anyway on some of servers when "Auto-create" function is creating files it is creating module folder with 744 permissions and files with also 744 with owner www-data:www-data.
It is doing that against off 777 in mkdir function.
This probably is some Server Environment behaviour and limitation do not have time yet check. Anyway to edit files I'm using separated user with have access to web server folder but with that chmod he cannot edit this files. To go around it I'm adding my unix user to www-data group and ex. in line 296 add:

else {
        chmod("{$directory}/{$module_name}.$extension", 0664);
                }

so this is make my files writeable for www-data group users.

I think You should add it as option where admin can define chmod for files created by your module so like in that situation this will not make problems for developer.

Regards

Comments

perelman.yuval’s picture

hi ShadowMonster.
thanks for the comment.
i thinks you are right.
we can add a umask(0002);
before we write the files.

but i want to think about it a little more, because it is a senestive issue....

i will update this issue soon.

gokulnk’s picture

I think that makes sense. Developer should have the permission to change or edit the files created by this module.