mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
Merge pull request #117 from maxpoulin64/fix-user-filemode
Remove attempts to set file modes
This commit is contained in:
commit
0f48b11a22
1 changed files with 1 additions and 3 deletions
|
@ -80,8 +80,7 @@ ClientManager.prototype.addUser = function(name, password) {
|
|||
mkdirp.sync(path);
|
||||
fs.writeFileSync(
|
||||
path + "/" + name + ".json",
|
||||
JSON.stringify(user, null, " "),
|
||||
{mode: "0777"}
|
||||
JSON.stringify(user, null, " ")
|
||||
);
|
||||
} catch (e) {
|
||||
throw e;
|
||||
|
@ -111,7 +110,6 @@ ClientManager.prototype.updateUser = function(name, opts) {
|
|||
fs.writeFileSync(
|
||||
path,
|
||||
JSON.stringify(user, null, " "),
|
||||
{mode: "0777"},
|
||||
function(err) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
|
|
Loading…
Reference in a new issue