Girish Ramakrishnan
74febcd30a
make ldap tests pass
2021-08-13 16:55:39 -07:00
Girish Ramakrishnan
a8760f6c2c
tests: cleanup common variables
2021-08-13 11:34:05 -07:00
Girish Ramakrishnan
ea430b255b
make the tests work
2021-06-29 11:01:46 -07:00
Girish Ramakrishnan
31498afe39
async'ify the groups code
2021-06-29 09:08:45 -07:00
Girish Ramakrishnan
663e0952fc
move wellKnownJson to domains
...
after some more thought:
* If app moves to another location, user has to remember to move all this config
* It's not really associated with an app. It's to do with the domain info
* We can put some hints in the UI if app is missing.
part of #703
2020-12-23 17:13:22 -08:00
Girish Ramakrishnan
246956fd0e
groupMembers: add unique constraint
...
fixes #696
2020-12-22 16:18:15 -08:00
Girish Ramakrishnan
f94ff49fb9
users: replace modifiedAt with ts
2020-07-09 16:02:49 -07:00
Johannes Zellner
42cbcc6ce3
groups.create() now needs source argument
2020-06-04 14:20:05 +02:00
Girish Ramakrishnan
0e156b9376
migrate permissions and admin flag to user.role
2020-02-21 16:49:20 -08:00
Girish Ramakrishnan
c537dfabb2
add manage user permission
2020-02-13 22:49:58 -08:00
Girish Ramakrishnan
a017af41c5
Start moving db code to use BoxError as well
2019-10-24 14:09:53 -07:00
Girish Ramakrishnan
2d115d3d0f
Move GroupsError to BoxError
2019-10-22 16:34:17 -07:00
Girish Ramakrishnan
7d299908c9
Fix tests
2019-08-30 10:49:43 -07:00
Girish Ramakrishnan
8af7dbc35a
group -> list
2019-08-23 16:36:19 -07:00
Girish Ramakrishnan
9b74bb73aa
config.js is dead, long live config.js
...
we use settings now
2019-07-26 14:51:51 -07:00
Girish Ramakrishnan
78a2176d1d
Make admin simply a boolean instead of group
...
This simplifies a lot of logic. Keeping an admin group has no benefit
2018-07-26 22:29:57 -07:00
Girish Ramakrishnan
b4d5def56d
Revert role support
2018-07-26 13:23:06 -07:00
Girish Ramakrishnan
b5c8e7a52a
Rename to getGroups
2018-06-18 14:10:29 -07:00
Girish Ramakrishnan
7f3114e67d
Rename to get/setMembership (to indicate IDs and not group objects
2018-06-18 13:57:17 -07:00
Girish Ramakrishnan
1dbcf2a46a
Rename to groups.update
2018-06-18 13:41:27 -07:00
Girish Ramakrishnan
ca9cd2cf0f
Add groups.getRoles
2018-06-16 00:29:56 -07:00
Girish Ramakrishnan
02d5d2f808
Add API to add and update the group roles
2018-06-15 00:28:27 -07:00
Girish Ramakrishnan
a77d45f5de
Add rolesJson to groups table
...
This will contain the roles ('role definition') of a group of
users. We will internally map these to our API scopes.
2018-06-14 22:54:52 -07:00
Girish Ramakrishnan
5e09f3dcb2
Group names can contain - and end with .app
...
now that we have decoupled it from mailbox names, this restriction
can be removed
2018-06-14 22:22:09 -07:00
Girish Ramakrishnan
6534297a5d
Remove hat module
...
It's not been updated for 6 years!
2018-06-11 12:38:29 -07:00
Girish Ramakrishnan
7bb8d059b5
GroupError -> GroupsError
2018-04-29 11:21:01 -07:00
Johannes Zellner
f028b4a232
Remove mailing list logic from groups tests
2018-01-26 20:07:23 +01:00
Johannes Zellner
cf94f26d62
Fixup the test using fallbackEmail
2018-01-22 11:52:58 +01:00
Girish Ramakrishnan
efe75f0c4e
make tests finish
...
database.uninitialize must be called to drop the connection
2017-11-27 11:57:09 -08:00
Johannes Zellner
1ccc3b84b8
Fixup various tests for multidomain
2017-11-20 20:01:50 +01:00
Girish Ramakrishnan
0a8adaac9f
filter out empty usernames from groups
...
Fixes #472
2017-11-06 11:09:40 -08:00
Girish Ramakrishnan
7efb6d60bc
Allow usernames and groupnames of length 1
...
Fixes #204
2017-02-02 01:02:51 -08:00
Girish Ramakrishnan
536c16929b
Remove showTutorial
2017-01-17 09:11:34 -08:00
Girish Ramakrishnan
cd0243d700
always store the group names as lower case
2016-09-30 12:33:18 -07:00
Girish Ramakrishnan
ba588a1cd7
Fix group name validation to not allow hyphen
...
Fixes #70
2016-09-30 12:28:29 -07:00
Girish Ramakrishnan
475fd06ac0
use unique ids for groups
2016-09-30 09:33:10 -07:00
Girish Ramakrishnan
1d12808b13
test setting group members
2016-09-29 15:15:25 -07:00
Girish Ramakrishnan
a91ae2b9aa
add mailboxdb.getGroup tests
2016-09-27 16:34:28 -07:00
Girish Ramakrishnan
0327333be2
Add test to check mailbox gets add/removed with group API
2016-09-27 15:49:06 -07:00
Girish Ramakrishnan
9a000ddaf0
make ADMIN_GROUP_ID a constant
2016-09-20 15:07:11 -07:00
Girish Ramakrishnan
82cd215ffa
merge bad fields and pass error.message correctly in REST responses
2016-06-02 00:12:21 -07:00
Johannes Zellner
e986a67d39
Fixup all the unit tests
2016-05-06 15:16:22 +02:00
Johannes Zellner
754e33af2a
do not allow removing the admin group
2016-02-13 12:42:41 +01:00
Johannes Zellner
63cab7d751
Allow non-empty groups to be deleted
2016-02-13 12:42:41 +01:00
Girish Ramakrishnan
f413bfb3a0
Add route to set the users groups
2016-02-09 16:43:32 -08:00
Girish Ramakrishnan
2b0791f4a3
rename vars
2016-02-09 16:19:00 -08:00
Girish Ramakrishnan
d95339534f
rename test file
2016-02-09 16:17:01 -08:00