mod_compat_roles: Fix attempt to index a nil value #1847
permissions[] is not a map with role names as keys since 817bc9873fc2
but instead a level with host names were added. This was likely an
oversight.
Refactored towards railroad.
---
labels:
- 'Stage-Alpha'
summary: 'Device identification'
...
Description
============
This is an experimental module that aims to identify the different
devices (technically clients) that a user uses with their account.
It is expected that at some point this will be backed by a nicer protocol,
but it currently uses a variety of hacky methods to track devices between
sessions.
Usage
=====
``` {.lua}
modules_enabled = {
-- ...
"devices",
-- ...
}
```
Configuration
=============
Option summary
--------------
option type default
------------------------------ ----------------------- -----------
max\_user\_devices number `5`
Compatibility
=============
------- -----------------------
trunk Works
0.11 Works
0.10 Does not work
------- -----------------------