Compare commits
1 Commits
v1.6.3
...
release/v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c0c0239ff |
@@ -1,9 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## v1.6.3
|
|
||||||
### Fixed
|
|
||||||
* Fixes SFTP authentication failing for administrative users due to a permissions adjustment on the Panel.
|
|
||||||
|
|
||||||
## v1.6.2
|
## v1.6.2
|
||||||
### Fixed
|
### Fixed
|
||||||
* Fixes file upload size not being properly enforced.
|
* Fixes file upload size not being properly enforced.
|
||||||
|
|||||||
@@ -288,10 +288,14 @@ func (h *Handler) can(permission string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SFTPServer owners and super admins have their permissions returned as '[*]' via the Panel
|
||||||
|
// API, so for the sake of speed do an initial check for that before iterating over the
|
||||||
|
// entire array of permissions.
|
||||||
|
if len(h.permissions) == 1 && h.permissions[0] == "*" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
for _, p := range h.permissions {
|
for _, p := range h.permissions {
|
||||||
// If we match the permission specifically, or the user has been granted the "*"
|
if p == permission {
|
||||||
// permission because they're an admin, let them through.
|
|
||||||
if p == permission || p == "*" {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
package system
|
package system
|
||||||
|
|
||||||
var Version = "develop"
|
var Version = "1.6.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user