mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove dead code
This commit is contained in:
parent
e69c374956
commit
1453263b63
|
@ -1,22 +0,0 @@
|
||||||
package filer
|
|
||||||
|
|
||||||
func hasWritePermission(dir *Entry, entry *Entry) bool {
|
|
||||||
|
|
||||||
if dir == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if dir.Uid == entry.Uid && dir.Mode&0200 > 0 {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
if dir.Gid == entry.Gid && dir.Mode&0020 > 0 {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
if dir.Mode&0002 > 0 {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
|
Loading…
Reference in a new issue