mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* User idle timeout
* Only allow one session per user at a time * user 'timestamp' property -> 'account_created' * Better User.getLegacySecurityLevel() using group membership * Client connection management -> client_connections.js * Minor changes & cleanup
This commit is contained in:
parent
36a8d771e8
commit
8d1fac41a9
11 changed files with 164 additions and 52 deletions
|
@ -52,7 +52,13 @@ function User() {
|
|||
};
|
||||
|
||||
this.getLegacySecurityLevel = function() {
|
||||
return self.isRoot() ? 100 : 30;
|
||||
if(self.isRoot() || self.isGroupMember('sysops')) {
|
||||
return 100;
|
||||
} else if(self.isGroupMember('users')) {
|
||||
return 30;
|
||||
} else {
|
||||
return 10; // :TODO: Is this what we want?
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue