diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-20 20:14:32 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-20 20:14:32 -0700 |
| commit | 7cd900d61edbd6d322db3cecb913adf574389320 (patch) | |
| tree | 7da8ac3658fa4b6204330f1f9c980428b6a6fdc5 /hotline/access.go | |
| parent | bb1e98842e35b3affaf94971e78c86f8b9547928 (diff) | |
Add initial support for resource and info forks
Diffstat (limited to 'hotline/access.go')
| -rw-r--r-- | hotline/access.go | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/hotline/access.go b/hotline/access.go index 69bf53e..f2e904d 100644 --- a/hotline/access.go +++ b/hotline/access.go @@ -6,8 +6,6 @@ import ( ) const ( - accessAlwaysAllow = -1 // Some transactions are always allowed - // File System Maintenance accessDeleteFile = 0 accessUploadFile = 1 @@ -37,13 +35,13 @@ const ( accessUploadAnywhere = 25 // accessAnyName = 26 // accessNoAgreement = 27 - // accessSetFileComment = 28 - // accessSetFolderComment = 29 - accessViewDropBoxes = 30 - accessMakeAlias = 31 - accessBroadcast = 32 - accessNewsDeleteArt = 33 - accessNewsCreateCat = 34 + accessSetFileComment = 28 + accessSetFolderComment = 29 + accessViewDropBoxes = 30 + accessMakeAlias = 31 + accessBroadcast = 32 + accessNewsDeleteArt = 33 + accessNewsCreateCat = 34 // accessNewsDeleteCat = 35 accessNewsCreateFldr = 36 // accessNewsDeleteFldr = 37 @@ -58,9 +56,6 @@ func (bits *accessBitmap) Set(i int) { // authorize checks if 64 bit access slice contain has accessBit set // TODO: refactor to use accessBitmap type func authorize(access *[]byte, accessBit int) bool { - if accessBit == accessAlwaysAllow { - return true - } bits := big.NewInt(int64(binary.BigEndian.Uint64(*access))) return bits.Bit(63-accessBit) == 1 |