Skip to content

Commit 7266d88

Browse files
committed
Add test.
1 parent 13cf34f commit 7266d88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/Authorization.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ Multi words like `Super Admin` would be `super-admin` etc.
118118
### Single-role
119119

120120
When using the single-role-per-user model TinyAuth expects your Users model to
121-
contain an column named ``role_id``. If you prefer to use another column name
121+
contain a column named ``role_id``. If you prefer to use another column name
122122
simply specify it using the ``roleColumn`` configuration option.
123+
If it is a nested relationship of sort, you can use the dot notation to specify the path, e.g. `Role.id`.
123124

124125
The ``roleColumn`` option is also used on pivot table in a multi-role setup.
125126

0 commit comments

Comments
 (0)