Repository navigation
v1.0.8
Permissions now represented via bitmask;
Logs replaced via debugLog(), which show logs only when Debug is true;
Host:
- Added "raw" structs which are used to parse configuration file;
- DefaultRoles renamed into Roles;
- Origin role renamed into default;
- Now can contain multiple default roles;
Now permissions of all roles are merged before authorization. Previously
they all was checked one-by-one. This behaviour lead to the error when
for example:
User has one role which allow Read and another which allow Update, but
action requires both Read and Update permissions at once, so user won't
be authorized for desired action.
In this case technically user has both this permissions, but they are in
different roles and that was not handled properly before.