Skip to content

Commit

Permalink
Allow fine tuning of SFTP permissions. (pterodactyl#57)
Browse files Browse the repository at this point in the history
* Allow fine tuning of SFTP permissions.
- Fixed incorrect permission for console commands.
- Modified some permissions for more friendly naming.
- File Manager permissions now control SFTP actions.
  • Loading branch information
PurpleIsEverything authored and DaneEveritt committed Feb 17, 2018
1 parent 0d86cac commit 1b0c0ff
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 151 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
logs
*.log
node_modules
nbproject
config/**/*
packs/**
.vagrant/
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class RouteController {

// Sends command to server
postServerCommand() {
Auth.allowed('s:files:command', (allowedErr, isAllowed) => {
Auth.allowed('s:command', (allowedErr, isAllowed) => {
if (allowedErr || !isAllowed) return;

if (!_.isUndefined(this.req.params.command)) {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/fileparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class FileParser {
});
}

xml_headless(file, strings, next) {
xmlHeadless(file, strings, next) {
this.xml(file, strings, next, true);
}
}
Expand Down
Loading

0 comments on commit 1b0c0ff

Please sign in to comment.