~evanj/cms

ref: 398a8759a304b7c11624c9f3642c3c6c07d2ab79 cms/internal/s/rbac/rbac.go -rw-r--r-- 244 bytes
398a8759Evan M Jones WIP(rbac): Large DB interface refactor. Prep for rbac work. TODO: All 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package rbac

import (
	"log"

	"git.sr.ht/~evanj/cms/internal/s/rl"
)

type RBAC struct {
	rl.RL
	log *log.Logger
	db  rl.RL // Or DB or Cache, depends on DI order in main.
}

func New(l *log.Logger, db rl.RL) RBAC {
	return RBAC{db, l, db}
}