Julian Lam
3a3d45155e
show pending members in frontend UI, #2588
2015-01-08 17:06:33 -05:00
Julian Lam
71b41239ac
attempting to join a private group causes the join to be pending, #2588
2015-01-08 16:50:31 -05:00
Julian Lam
d747ce5760
granting and rescinding ownership, #2588
2015-01-08 15:40:41 -05:00
Julian Lam
a907fa2187
added concept of group ownership, #2588
2015-01-08 15:40:38 -05:00
Julian Lam
917f76feab
group join/leave controls in groups list page (+ helper!)
2015-01-07 14:58:31 -05:00
barisusakli
be11577aa4
closes #2477
2014-12-01 20:28:36 -05:00
barisusakli
51c520f888
closes #2480
2014-11-30 12:52:16 -05:00
barisusakli
420aa5e102
fix moderators
2014-11-09 00:33:26 -05:00
barisusakli
1004fb2822
closes #2354
2014-11-06 16:29:14 -05:00
barisusakli
a6e498bb5d
error check
2014-11-05 16:48:12 -05:00
barisusakli
608943255b
better check
2014-11-05 16:42:32 -05:00
barisusakli
ec0624918f
possible fix for #2351
2014-11-05 13:35:15 -05:00
Julian Lam
0a38a783c7
TravisCI is TOO DAMN FAST
2014-11-04 18:59:26 -05:00
barisusakli
e769ebe668
closes #2347
2014-11-04 15:56:33 -05:00
psychobunny
50b264ac7d
prevent deleted users belonging to a group from breaking edit functionality
2014-10-29 21:07:46 -04:00
Martin Freisen
a258f2b20b
include plugins for the hooks to work
2014-09-27 00:54:51 +02:00
Martin Freisen
ab90d7b9d4
added hooks action:groups.join and action:groups.leave
2014-09-27 00:23:44 +02:00
barisusakli
7d93926ef7
removed async.map
2014-09-20 23:04:49 -04:00
psychobunny
16accf6cd0
fixing groups.leave
2014-09-17 18:32:38 -04:00
barisusakli
0a936e5dd1
unreadTids
2014-09-16 12:38:31 -04:00
barisusakli
7a61645256
less db calls
2014-09-14 12:07:25 -04:00
barisusakli
4e6719e0aa
added filterUids method to privileges
...
used to filter uids on a single category
2014-09-14 12:07:24 -04:00
barisusakli
779b2a8d73
optimize queries
2014-09-06 00:58:03 -04:00
barisusakli
ca90afd544
#1992
...
(drunk) not even done yet
2014-08-16 21:33:42 -04:00
barisusakli
b8279dc737
optimize getUserGroups to work with multiple user ids
2014-08-09 02:07:03 -04:00
barisusakli
76b257f7b8
optimized User.getUsers
2014-08-06 12:39:14 -04:00
barisusakli
97909a6cac
err checks
2014-08-01 18:21:39 -04:00
barisusakli
d9a0af712d
group null and err check
2014-07-31 08:01:11 -04:00
barisusakli
dc68dce27f
check err
2014-07-31 07:38:19 -04:00
root---
f2d07d3182
fix fatal error when renaming group with no users
2014-07-31 01:39:41 -04:00
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.
2014-07-29 21:51:46 -04:00
Julian Lam
b7d27fe48b
god damnit @barisusakli :P
2014-07-25 16:57:36 -04:00
barisusakli
fde8e9d90f
on group destroy, remove it from all groups
...
previously if a group was destroyed it was left behind in privilege
groups
2014-07-23 13:32:23 -04:00
barisusakli
8113ed6a4d
closes #1883 , no upgrade script #successkid
2014-07-23 03:09:07 -04:00
barisusakli
054ceab0be
isMemberOfGroups fix
2014-07-23 00:36:03 -04:00
barisusakli
5292bdad5a
closes #1871
2014-07-22 15:39:23 -04:00
Aziz Khoury
ed7631cab5
tab indent fix
2014-07-15 13:39:02 -04:00
Aziz Khoury
d1f97723e7
Group.join() callback made optional
2014-07-15 13:32:21 -04:00
barisusakli
64d04f7aa6
closes #1803
2014-07-07 17:36:14 -04:00
barisusakli
d57f183f42
privileges.posts.get takes an array of pids now
2014-06-28 14:59:01 -04:00
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
2014-06-28 01:03:26 -04:00
barisusakli
03ec1c3216
added group.hide back into groups.join
2014-06-18 20:00:01 -04:00
barisusakli
3c44beb4bb
group userTitle default
2014-06-16 13:10:00 -04:00
barisusakli
ab80016910
fixed group hide for privilege groups
2014-06-14 18:26:16 -04:00
barisusakli
07275b5fc4
some checks to make last admin isnt removed
2014-06-13 22:48:24 -04:00
barisusakli
42d03cc491
closes #1678
2014-06-13 18:27:03 -04:00
barisusakli
3b1e373e7b
group titles
2014-06-12 18:53:58 -04:00
Julian Lam
eb2929f497
removing slufigication when checking for group existence
2014-05-26 21:37:50 -04:00
Julian Lam
3baf00208f
slugifying group name when checking for existence
2014-05-26 21:13:18 -04:00
Julian Lam
f20926f93d
finished up group list and group details pages - closed #1563
2014-05-23 09:49:18 -04:00