Barış Soner Uşaklı
ff6c6a54c1
make upload permissions global
...
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
7 years ago
Baris Usakli
025709499c
more fixes
7 years ago
Baris Usakli
242dc41aca
move privileges to same page
7 years ago
Baris Usakli
4a73621dca
chat privilege
7 years ago
Baris Usakli
a19537dc25
closes #6137
7 years ago
Barış Soner Uşaklı
2185480c4e
switch to eachSeries
8 years ago
Barış Soner Uşaklı
5344edc2a7
closes #5885
8 years ago
Barış Soner Uşaklı
e9f8cdc7f0
closes #5855
8 years ago
Barış Soner Uşaklı
38af651072
use _.uniq
8 years ago
Barış Soner Uşaklı
c36f25f761
switch .filter to uniq
8 years ago
Barış Soner Uşaklı
d65f494c6d
closes #5127
8 years ago
Baris Usakli
4903585d88
refactor userPrivileges and groupPrivileges
8 years ago
Barış Soner Uşaklı
59b1d8fbae
Merge pull request #5710 from NodeBB/_lodash
...
Switch from underscore to lodash
8 years ago
Peter Jaszkowiak
d4e7db45b7
Use zipObject, more test-related ignores
8 years ago
Barış Soner Uşaklı
937d6dd4df
fix acp privilege page not loading
8 years ago
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
8 years ago
Barış Soner Uşaklı
3d1b1a9423
closes #5706
8 years ago
Barış Soner Uşaklı
8db193ff55
privileges style changes
8 years ago
Barış Soner Uşaklı
59d0815073
closes #5637
8 years ago
Julian Lam
af2d9fb85b
Merge branch 'master' into develop
8 years ago
barisusakli
324e5be7bd
privileges tests
8 years ago
barisusakli
1bee91fa22
groups refactor
8 years ago
Julian Lam
72e77772db
Merge branch 'master' into develop
8 years ago
Julian Lam
995f8296a4
linting
8 years ago
Julian Lam
e71bd7a27f
Merge branch 'master' into styleguide
8 years ago
barisusakli
ca1fe557c7
topic controller tests
8 years ago
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
8 years ago
Peter Jaszkowiak
144fa8698c
Eslint no-lonely-if
8 years ago
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
8 years ago
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
8 years ago
Peter Jaszkowiak
feb8405f95
ESlint eol-last
8 years ago
Peter Jaszkowiak
604358ecc4
ESlint keyword-spacing, no-multi-spaces
8 years ago
Peter Jaszkowiak
a5a3f3089a
ESlint no-mixed-operators
8 years ago
Peter Jaszkowiak
2e031f3759
ESlint comma-spacing
8 years ago
Peter Jaszkowiak
532951c24f
ESlint space-in-parens, block-spacing
8 years ago
Peter Jaszkowiak
3361a72725
ESlint no-plusplus
...
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak
2ba46808a1
ESlint one-var, fix comma-dangle
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
Peter Jaszkowiak
ec544518e8
Use async v2
8 years ago
barisusakli
2476ab3684
closes #5202
8 years ago
barisusakli
96d05b58d4
show deleted replies like regular deleted posts
8 years ago
barisusakli
218a1b7aab
closes #5015
8 years ago
Sergii Paryzhskyi
e515b791da
Fix eslint rules ( #5117 )
...
* Fix semi linter rule
* Fix semi-spacing linter rule
* Fix no-undef-init linter rule
* Fix space-before-blocks linter rule
8 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
8 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
8 years ago
barisusakli
07852862f5
improve helpers.isUserAllowedTo
...
ability to pass in an array of privileges and a single cid
9 years ago
barisusakli
b933385b76
partially revert fa9f1ac7fe
...
extending module.exports instead of overwriting fixes the issue
9 years ago
barisusakli
fa9f1ac7fe
fix dependency errors
9 years ago
barisusakli
6d946425fa
fix tests, circular deps
9 years ago
barisusakli
0efe315790
closes #4631
9 years ago
barisusakli
d7cda83c8e
fix lang key
9 years ago
barisusakli
56d325bd86
privilege fixes
9 years ago
barisusakli
037b901e85
closes #4919
9 years ago
Ben Lubar
f62da5c4e9
see NodeBB/NodeBB#4909
9 years ago
Ben Lubar
26df552d55
Add edit, delete, and topics:delete permissions for users acting on their own posts
9 years ago
barisusakli
d2cbd7e6dc
new priv for uploads
9 years ago
barisusakli
795b00a3af
closes #4810
9 years ago
barisusakli
14b067a838
closes #4800
9 years ago
barisusakli
09ce48ad33
fix privs
9 years ago
barisusakli
8f594de4c2
fix privs
9 years ago
barisusakli
c969870cb6
removed dupe privilegeList, added missing privilege to copyPrivsFrom
9 years ago
psychobunny
b37b083a4d
new privilege: Access Topic
...
differentiation between Access Category and Access Topic, ie. allows you
to see the category view but not actually enter the topic itself
9 years ago
pichalite
6c09d3ca5f
fixes #4636 ( #4639 )
9 years ago
barisusakli
5ff5a01c4f
check for invalid topic
9 years ago
barisusakli
5e5e46e95f
closes #4499
9 years ago
Barış Soner Uşaklı
89aa06526d
fix indent
9 years ago
barisusakli
86d70eca74
closes #4103
9 years ago
barisusakli
08f52b1e0b
remove unused requires
9 years ago
barisusakli
fa136ca021
remove unused code
9 years ago
barisusakli
47c71b5a37
closes https://github.com/NodeBB/nodebb-theme-persona/issues/181
9 years ago
barisusakli
5e1bd58a02
closes #3782
9 years ago
barisusakli
8630196a2d
up composer
9 years ago
barisusakli
75e2228989
closes #3689
10 years ago
barisusakli
fec3877e51
fix tests
10 years ago
barisusakli
8c17de4221
remove dupe
10 years ago
barisusakli
4e32751819
added back canEdit
10 years ago
barisusakli
5950f97f96
more refactors
10 years ago
barisusakli
1f4857585d
user refactor
10 years ago
barisusakli
96364935e9
removed deprecated methods
10 years ago
barisusakli
11c70f3a28
closes #2330
10 years ago
barisusakli
3fff334de2
some priv cleanup
10 years ago
barisusakli
faae98892d
privilege fixes
10 years ago
barisusakli
e341b80d93
use set to get groups
10 years ago
Julian Lam
cbb0542984
changed behaviour of privilege table so that groups without explicit privileges are not shown in the privilege table
10 years ago
barisusakli
3ffd3a5d3c
closes #2970 , closes #3078
10 years ago
barisusakli
b7b44e13b1
added privileges.topics.filterUids
...
if a topic is deleted and user doesn't have permissions/admin/mod dont
send notifs
10 years ago
barisusakli
1b2da78fd8
missing lines
10 years ago
barisusakli
1ce3d7284b
closes #2995
10 years ago
barisusakli
9e3b2148ba
components
10 years ago
barisusakli
b2087f94e2
closes #2904
10 years ago
Julian Lam
c706638b5d
updating groups access control so:
...
1. Guests can no longer receive the moderate bit
2. If you attempt to grant the moderate privilege to a public group, a confirmation modal appears
3. A lock icon is present next to all private groups
10 years ago
Julian Lam
89442c91c6
fixed bug where privilege state was not correctly calculated for MongoDB installs, and fixed columnCount not being present when a the privilege list is refreshed
10 years ago
barisusakli
ed8d60b76b
move registered-users/guests to top remove admins from priv settings
10 years ago
Julian Lam
1a58ea6520
closed #2695
10 years ago
Julian Lam
7cdfe143ab
fixed bug where cid was hardcoded, and switched format back to storing group names, not slugs, #2887
10 years ago
Julian Lam
d3af278123
removed old code that was no longer necessary, updated privilege table to show all groups (similar to previous behaviour), fixes #2887
10 years ago
Julian Lam
9b84a887d3
a huge frickin' number of changes for #2887 . This is part of #2463
10 years ago
Barış Soner Uşaklı
203d4d052a
fixed my logic fail
10 years ago
Barış Soner Uşaklı
fc28cbf887
filter cids with a single .filter thanks @julianlam
10 years ago
Julian Lam
06d547a6cb
fixed bug in privilege settings where categories near the end of a list were not having their permissions read properly if earlier categories were disabled, #2887
10 years ago
Barış Soner Uşaklı
73505e9bd0
closes #2247
10 years ago
Barış Soner Uşaklı
094cd6df32
closes #2777
10 years ago
Barış Soner Uşaklı
c94c1430b7
api/post/pid route
10 years ago
Julian Lam
8ba05c08fe
category privilege rescinding
10 years ago
barisusakli
b07a522c60
one less query in privileges.topics.get
10 years ago
barisusakli
8e114c2093
moved isAdminOrMod check out of getTopicsByTids
10 years ago
barisusakli
52c12fa1b1
use wrapper functions getPostsFields and getTopicsFields
10 years ago
barisusakli
5c7487c13b
err check
10 years ago
Julian Lam
b65d518a97
properly handling error for hook filter:privileges.posts.filter
10 years ago
Julian Lam
20ea40133b
added four new hooks: filter:categories.recent, filter:privileges.categories.get, filter:privileges.posts.filter, filter:privileges.topics.filter
10 years ago
Julian Lam
c0fc7e9ca4
updating privilege handling to fire two new hooks, filter:privileges.topics.get and filter:category.topics.get
10 years ago
barisusakli
15e472db12
on category creation give defaults privs to admins and registered users
10 years ago
barisusakli
fa5ac04cd3
src/topics.js cleanup
10 years ago
barisusakli
604dac88e3
closes #2382 , closes #2130
10 years ago
barisusakli
c18de5cdd2
posts/recent.js refactor
10 years ago
barisusakli
420aa5e102
fix moderators
10 years ago
barisusakli
4440260f8f
closes #2275
10 years ago
barisusakli
70657251b9
no need for return
10 years ago
Julian Lam
44175188c4
handling case where user does not satisfy any of the privilege thresholds given to the hasEnoughReputationFor method
10 years ago
barisusakli
06f66337fb
anon checks
...
less db calls for uid 0
10 years ago
barisusakli
37d7756271
hasEnoughRep can take an array
...
user follow uid checks
10 years ago
barisusakli
9a21e9646f
only use multipart on upload routes,
...
delete temp files if there is an error in admin,
admin/mods should see topic reply
10 years ago
barisusakli
fd00dddd62
admin/mods always gets the reply privs
10 years ago
barisusakli
ec9bf48477
admins/mods can always read topics
10 years ago
barisusakli
7de9b998b5
fix typo in ajaxify, closes #2279
11 years ago
barisusakli
eab180f305
crash fix
11 years ago
barisusakli
7d93926ef7
removed async.map
11 years ago
barisusakli
4e6719e0aa
added filterUids method to privileges
...
used to filter uids on a single category
11 years ago
barisusakli
57e204df8e
removed most of the debug
...
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
11 years ago
barisusakli
0cfa430444
crash fix
11 years ago
barisusakli
7405051924
50
11 years ago
barisusakli
5fd199ae8a
check privs pids
11 years ago
barisusakli
528ee335d5
optimize getTopicsByTids and getTeasers
11 years ago
barisusakli
e420ee5fb6
privilege fix for single category check
11 years ago
barisusakli
1398937dd8
early outs for privs
...
no need to check if empty array is passed in, happens if there are no
unread topics
remove dupe cids before checking for privileges
11 years ago
barisusakli
cfc67d4e90
closes #1924
11 years ago
barisusakli
7e82d3d9a5
fix guest priv
11 years ago
barisusakli
efdd795084
closes #1922
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
barisusakli
d57f183f42
privileges.posts.get takes an array of pids now
11 years ago
barisusakli
c191aa079f
closes #1735
11 years ago
barisusakli
bd4722665d
closes #1725
...
removed move button from main post, disable moving main post, fixed
moving posts.
11 years ago
barisusakli
9af12819e3
closes #1731
11 years ago
barisusakli
b8b482e287
closes #1555
11 years ago
barisusakli
472e6b5206
privilege cleanup
11 years ago
Julian Lam
b1534b7798
removing allowGuestPosting logic in NodeBB
11 years ago
Julian Lam
3474cdc5ea
added new privilege "find", added guest meta group, closed #1282
11 years ago
barisusakli
b1aae05a08
closes #1518
11 years ago
barisusakli
29420d6f82
fixed indents
11 years ago
barisusakli
3e86bdb38f
more work on #1518
...
still needs more work, category is next
11 years ago