Refactor GetAccessLevel to include address parameter, update all ACL implementations and handlers for enhanced contextual access control.

This commit is contained in:
2025-09-08 07:42:47 +01:00
parent 85d806b157
commit c9314bdbd0
7 changed files with 12 additions and 14 deletions

View File

@@ -116,7 +116,7 @@ func (f *Follows) Configure(cfg ...any) (err error) {
return
}
func (f *Follows) GetAccessLevel(pub []byte) (level string) {
func (f *Follows) GetAccessLevel(pub []byte, address string) (level string) {
if f.cfg == nil {
return "write"
}