mirror of
https://github.com/hay-kot/homebox.git
synced 2025-06-03 11:02:29 +00:00
feat: auth-roles, image-gallery, click-to-open (#166)
* schema changes * db generate * db migration * add role based middleware * implement attachment token access * generate docs * implement role based auth * replace attachment specific tokens with gen token * run linter * cleanup temporary token implementation
This commit is contained in:
parent
974d6914a2
commit
de419dc37d
48 changed files with 3127 additions and 244 deletions
|
@ -43,6 +43,8 @@ func init() {
|
|||
attachmentDescID := attachmentMixinFields0[0].Descriptor()
|
||||
// attachment.DefaultID holds the default value on creation for the id field.
|
||||
attachment.DefaultID = attachmentDescID.Default.(func() uuid.UUID)
|
||||
authrolesFields := schema.AuthRoles{}.Fields()
|
||||
_ = authrolesFields
|
||||
authtokensMixin := schema.AuthTokens{}.Mixin()
|
||||
authtokensMixinFields0 := authtokensMixin[0].Fields()
|
||||
_ = authtokensMixinFields0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue