Julian Lam
0c2d2a28ba
admins can bypass the request step of a group and just join it, and they also become owners when they join a group
10 years ago
Julian Lam
d2217b8137
closed #2641
10 years ago
barisusakli
f3719df997
getGroups method to get a range
10 years ago
Julian Lam
3ade5da00f
groups sorting by creation date
10 years ago
barisusakli
25f6b816ed
send iso and unix timestamp
10 years ago
barisusakli
c379753341
upgrade scripts
...
upgrade groups to sorted set(groups:createtime) upgrade
upgrade groups:<name>:members to sorted set
new database methods
tests
10 years ago
Julian Lam
4a3255d4fd
search sorting
10 years ago
Julian Lam
2a6de59277
if group search is executed with empty string, return all groups
10 years ago
Julian Lam
fd8a885145
fixed tests by removing the broken one, heh heh heh
10 years ago
Julian Lam
6502dd2561
group searching
10 years ago
barisusakli
dd38ee96fa
return cover:url in user groups
10 years ago
barisusakli
21522e59c4
added slug to user group return #2635
10 years ago
Julian Lam
5160ab1ed1
closed #2625
10 years ago
barisusakli
ad21e73491
send values to plugins when updating groups
10 years ago
Julian Lam
eb5b8ccec3
better check for group exist, groups with different cases can no longer be created, #2588
10 years ago
barisusakli
9f8b274e24
filter:group.get
10 years ago
barisusakli
94fa212eab
added filter:groups.get
10 years ago
Julian Lam
c026a64e8e
adding concept of group slugs, #2588 . ping @barisusakli for downstream plugin changes
10 years ago
barisusakli
6f140384e0
send groupData on action:group.create
10 years ago
Julian Lam
04be40158c
if you attempt to join a group when you're already in a group, you can't anymore.
10 years ago
Julian Lam
577a646adc
this should appease @barisusakli
10 years ago
Julian Lam
8d23265324
sending in groupObj data into group.delete hook
10 years ago
Julian Lam
fa87d883dc
allowing "hidden" to be passed directly to Groups.create
10 years ago
Julian Lam
d813bda883
update, create, destroy hooks, #2609
10 years ago
Julian Lam
5c6dfb7462
missed one, @EisFrei
10 years ago
Julian Lam
cfdd4ec164
Revert "missed one, ping @EisFrei"
...
This reverts commit 2ed6b78cc5
.
10 years ago
Julian Lam
2ed6b78cc5
missed one, ping @EisFrei
10 years ago
Julian Lam
666cef4029
updated hooks action:groups.join, action:groups.leave, and action:groups.requestMembership to match other action hooks in group namespace (that's "group", not "groups"), ping @EisFrei
10 years ago
Julian Lam
36a49cd994
guests can no longer attempt to join a group, #2588
10 years ago
Julian Lam
87b9a60610
fixed group renaming, ping @schamper
10 years ago
Julian Lam
7289d50e6c
whoops, fixing travis and groups
10 years ago
Julian Lam
d02f7e0e42
#2609
10 years ago
Julian Lam
6ac04e9da7
closed #2609
10 years ago
Julian Lam
698f598a30
default cover photo for groups, #2588
10 years ago
Julian Lam
675968f0f3
cover photo for groups, #2588
10 years ago
Julian Lam
635393a274
group creation and deletion from outside ACP, #2588
10 years ago
Julian Lam
b4731ad47b
added colorpicker to frontend, badge colour changes for groups, #2588
10 years ago
Julian Lam
7be0830751
properly showing private state in group details, #2588
10 years ago
Julian Lam
84c19921b9
newly created groups automatically assign the creator as the owner, some tweaks to isPrivate parsing, added groups link to header, #2588
10 years ago
Julian Lam
65537d997f
if a group is deleted, flush the owner and pending sets, too
10 years ago
Julian Lam
96c37c25b0
join, leave, accept, reject: handlers + UI, #2588
10 years ago
Julian Lam
3a3d45155e
show pending members in frontend UI, #2588
10 years ago
Julian Lam
71b41239ac
attempting to join a private group causes the join to be pending, #2588
10 years ago
Julian Lam
d747ce5760
granting and rescinding ownership, #2588
10 years ago
Julian Lam
a907fa2187
added concept of group ownership, #2588
10 years ago
Julian Lam
917f76feab
group join/leave controls in groups list page (+ helper!)
10 years ago
barisusakli
be11577aa4
closes #2477
10 years ago
barisusakli
51c520f888
closes #2480
10 years ago
barisusakli
420aa5e102
fix moderators
10 years ago
barisusakli
1004fb2822
closes #2354
10 years ago
barisusakli
a6e498bb5d
error check
10 years ago
barisusakli
608943255b
better check
10 years ago
barisusakli
ec0624918f
possible fix for #2351
10 years ago
Julian Lam
0a38a783c7
TravisCI is TOO DAMN FAST
10 years ago
barisusakli
e769ebe668
closes #2347
10 years ago
psychobunny
50b264ac7d
prevent deleted users belonging to a group from breaking edit functionality
10 years ago
Martin Freisen
a258f2b20b
include plugins for the hooks to work
10 years ago
Martin Freisen
ab90d7b9d4
added hooks `action:groups.join` and `action:groups.leave`
10 years ago
barisusakli
7d93926ef7
removed async.map
10 years ago
psychobunny
16accf6cd0
fixing groups.leave
10 years ago
barisusakli
0a936e5dd1
unreadTids
10 years ago
barisusakli
7a61645256
less db calls
10 years ago
barisusakli
4e6719e0aa
added filterUids method to privileges
...
used to filter uids on a single category
10 years ago
barisusakli
779b2a8d73
optimize queries
11 years ago
barisusakli
ca90afd544
#1992
...
(drunk) not even done yet
11 years ago
barisusakli
b8279dc737
optimize getUserGroups to work with multiple user ids
11 years ago
barisusakli
76b257f7b8
optimized User.getUsers
11 years ago
barisusakli
97909a6cac
err checks
11 years ago
barisusakli
d9a0af712d
group null and err check
11 years ago
barisusakli
dc68dce27f
check err
11 years ago
root---
f2d07d3182
fix fatal error when renaming group with no users
11 years ago
barisusakli
fed8cc6d53
optimize privileges and assorted fixes.
...
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter
they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing async.filter and calling the db for each id.
* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
11 years ago
Julian Lam
b7d27fe48b
god damnit @barisusakli :P
11 years ago
barisusakli
fde8e9d90f
on group destroy, remove it from all groups
...
previously if a group was destroyed it was left behind in privilege
groups
11 years ago
barisusakli
8113ed6a4d
closes #1883 , no upgrade script #successkid
11 years ago
barisusakli
054ceab0be
isMemberOfGroups fix
11 years ago
barisusakli
5292bdad5a
closes #1871
11 years ago
Aziz Khoury
ed7631cab5
tab indent fix
11 years ago
Aziz Khoury
d1f97723e7
Group.join() callback made optional
11 years ago
barisusakli
64d04f7aa6
closes #1803
11 years ago
barisusakli
d57f183f42
privileges.posts.get takes an array of pids now
11 years ago
barisusakli
c3a9767bf6
late night optimizations
...
-isMemberOfSets returns true/false instead of 1/0
-when loading the posts of a topic only get the userdata for each user
once, before this commit if a topic had 10 posts from 2 different users
we were getting the user data for each user 5 times (drunk)
-getVoteStatusByPostIDs and getFavouritesByPostIDs no longer make
pids.length calls to the db, they use isMemberOfSets now
-getUserInfoForPost renamed to getUserInfoForPosts and doesnt make
uids.length calls to db, uses getMultipleUserFields instead
11 years ago
barisusakli
03ec1c3216
added group.hide back into groups.join
11 years ago
barisusakli
3c44beb4bb
group userTitle default
11 years ago
barisusakli
ab80016910
fixed group hide for privilege groups
11 years ago
barisusakli
07275b5fc4
some checks to make last admin isnt removed
11 years ago
barisusakli
42d03cc491
closes #1678
11 years ago
barisusakli
3b1e373e7b
group titles
11 years ago
Julian Lam
eb2929f497
removing slufigication when checking for group existence
11 years ago
Julian Lam
3baf00208f
slugifying group name when checking for existence
11 years ago
Julian Lam
f20926f93d
finished up group list and group details pages - closed #1563
11 years ago
Julian Lam
8a510c340b
limiting user and group creation so that their slugs can't intersect.
11 years ago
Julian Lam
1d7c293197
added option to remove ephemeralGroups from groups listing
11 years ago
Julian Lam
b1534b7798
removing allowGuestPosting logic in NodeBB
11 years ago
Julian Lam
c297e2f2f8
ephemeral groups - guests
11 years ago
barisusakli
0ac58dbee6
more error strings
11 years ago
Julian Lam
d1a64798b9
removing use of slugs in groups... pending having more time
11 years ago
Julian Lam
bd2a1a3efa
Revert "reverting groups.js to 4701eb1cee1a35b7f059f4362773bd9d67b7370c"
...
This reverts commit d8df9ab3ed
.
11 years ago
psychobunny
d8df9ab3ed
reverting groups.js to 4701eb1cee
11 years ago
Julian Lam
49a686af78
fixing groups tests
11 years ago
Julian Lam
14b9c03199
First pass at #1331 - Groups.search() + Tests
11 years ago
Julian Lam
4701eb1cee
updating groups so that members leave a group when it is deleted
11 years ago
Julian Lam
0e44eb8629
final refactoring pass for groups -- #1252
11 years ago
Julian Lam
7b4f596aba
updating all group lib methods, and their callers -- #1252
11 years ago
Julian Lam
befaa56ad0
derp derp derp more refactoring of groups
11 years ago
Julian Lam
c893effcb9
WIP commit -- groups refactoring + upgrade scripts
11 years ago
Julian Lam
4239c376c8
truncating user list in Groups ACP page, resolved #1132 . Refactored system groups handling
11 years ago
barisusakli
1354739d19
user deletion #746
...
user deletion NOT SKALABLE
11 years ago
barisusakli
b413f06b72
removed unused function from groups, jshint
11 years ago
Julian Lam
fdd2dc322b
first pass #992
11 years ago
psychobunny
6496ad95e8
Revert "closes #992"
...
This reverts commit ed4b0461b9
.
11 years ago
psychobunny
ed4b0461b9
closes #992
11 years ago
Julian Lam
d360a9bcac
resolved #868
11 years ago
Julian Lam
d380f69310
support for "registered users" and "administrators" in access control (categories). Renamed "Administrators" group to "administrators", and made hidden
11 years ago
Julian Lam
2495b5b89b
refactored group category permissions, removed getCategoryAccess method call
11 years ago
psychobunny
36e1a121ed
removing some console.log's
11 years ago
root
35ad3be969
Adding support for restricting category read access based on user groups
11 years ago
Baris Soner Usakli
097810a057
parseInt fixes getObjects fix
11 years ago
Baris Usakli
7875138c08
added parseInt
11 years ago
Baris Soner Usakli
e066fbf36a
sets are storing numbers in mongo as opposed to redis which stores strings, causes tons of problems
11 years ago
Baris Soner Usakli
3775c8e50a
tons more changes
11 years ago
Julian Lam
38da65ee58
tweaks to category permission modal
11 years ago
Julian Lam
e3e1a556cd
groups pruning method
11 years ago
Julian Lam
69427fa10e
tweaks to make the ACP work better on tablets, some work on hidden groups
11 years ago
Julian Lam
8b62041d28
refactored groups and categories, groups no longer explodes when
...
attempting to add members to a whitelist that doesn't exist, isEmpty
checks (new methods!) and such...
11 years ago
Julian Lam
df2e9b4b47
admin panel integration for category whitelisting
11 years ago
Julian Lam
f0e8633dcc
category whitelisting for posting messages, isAdmin now error-first
11 years ago
Julian Lam
974629ce85
hahah, bad paste, missing a bunch of line endings
11 years ago
Julian Lam
72ef8c839f
Merge remote-tracking branch 'origin/master' into category-whitelisting
...
Conflicts:
src/groups.js
11 years ago
psychobunny
46d6d7637e
potentially fixes ubbmigrator issue https://github.com/akhoury/nodebb-plugin-ubbmigrator/issues/2
11 years ago
Julian Lam
4e2326fc84
Merge remote-tracking branch 'origin' into category-whitelisting
11 years ago
psychobunny
a1839d90fd
prevent admin group from being deleted, closes #530
11 years ago
Julian Lam
18009ebb39
interim commit
11 years ago
psychobunny
28704a6164
hinting
12 years ago
psychobunny
aea3181d27
formatting - server side core
12 years ago
Baris Usakli
bb14881b63
change getUserData to return err
12 years ago
Julian Lam
bec0b46a2c
refactoring installation scripts to use node prompt module, lots of other fixes
...
fixed #263 , fixed #264 , fixed #265
12 years ago
Julian Lam
f39932ece7
group join leave, and updating
12 years ago
Julian Lam
85ac4aac94
group creation and deletion
12 years ago
Julian Lam
f2b8813fb9
brain dumped groups lib
12 years ago