Julian Lam
8a6a58ee43
feat: added new admin option newbiePostEditDuration ( #7737 )
...
* feat: added new admin option newbiePostEditDuration
Also:
- Grammar-checked a couple language strings
- Moved a couple form inputs around in new user restrictions
- Added a test for the new option
- fix: 'defore' typo
2019-07-04 13:28:36 -04:00
Baris Usakli
667bc67f04
fix: dont allow edit if post is deleted by someone else
2019-06-26 12:06:57 -04:00
Barış Soner Uşaklı
035f624758
Remove implicit mod privs. closes #6345 ( #7648 )
...
* feat: add upgrade script to give mods privs
* feat: give all privileges when making a moderator
* feat: remove implicit privs
* feat: give global mods default privs
* feat: more priv fixes
* feat: use lodash
* fix: remove implicit mod priv from topic delete
* fix: more privs
* fix: posts.canEdit
* fix: canDelete and canEdit
* fix: tests, remove console.log
* feat: shorter functions
* feat: add tests
* fix: uids
* fix: redis random test fail
2019-05-30 19:30:47 -04:00
Barış Soner Uşaklı
c72da5595a
fix : #6806
...
3 new global privileges
view:users
view:tags
view:groups
2019-02-05 12:08:18 -05:00
Barış Soner Uşaklı
9d1fcf4e36
fix: closes #7217
2019-02-04 14:16:47 -05:00
Julian Lam
f659ef4d80
feat: new hook filter:privileges.posts.edit
2019-01-26 13:48:57 -05:00
Julian Lam
df6f75eb05
fix : #7298 privilege header misalignment
2019-01-26 13:48:56 -05:00
Barış Soner Uşaklı
54c127d1b2
feat: allow array results
2018-12-04 15:29:50 -05:00
Peter Jaszkowiak
ba619c7ec8
style(eslint): match operator-linebreak preferences
2018-11-30 13:38:59 -05:00
Barış Soner Uşaklı
13139fe77e
return early for guests/spiders
2018-11-24 23:15:10 -05:00
Barış Soner Uşaklı
d63db8d20f
arrow function
2018-11-12 00:22:10 -05:00
Barış Soner Uşaklı
69bb3293ee
misc fixes
...
handle spider uids properly
2018-11-12 00:20:44 -05:00
renovate[bot]
64b9dabff8
chore(deps): update dependency eslint-config-airbnb-base to v13 ( #6599 )
...
* chore(deps): update dependency eslint-config-airbnb-base to v13
* chore: #6599 , linting 😬
2018-11-07 15:53:14 -05:00
Baris Usakli
138154a71c
move modules
2018-10-23 15:03:32 -04:00
Barış Soner Uşaklı
ac39112271
remove more parseInts
2018-10-21 19:33:46 -04:00
Barış Soner Uşaklı
9c022afae1
Parse int ( #6853 )
...
* Store config fields as JSON in the db
Fewer parseInts
* Remove unnecessary parseInts
* remove some dupe code add tests
* remove console.log
* remove more parseInts
* WIP: read meta.configs defaults from defaults.json
remove more parseInts
* more work
* add log for failing test
* update admin pwd
* fix tests, dont require posts/cache before configs are initialized
* handle saves
* Test boolean conditions
* remove more parseInts
* Fix boolean values
* remove lots more parseInts
* removed json parsing
* renamed var to number
* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
ee2f9e9434
remove some parseInts
2018-10-20 17:55:13 -04:00
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
b57db7fd8e
update groups join to take array of group names ( #6834 )
...
* allow groups.join to take an array of group names
* pass an array to groups.join/leave in privileges
* split up groups/membership
* add hits/miss to group cache
* fix typo
2018-10-15 13:45:55 -04:00
Barış Soner Uşaklı
77beaf2e15
Allow local login,closes #6800 ( #6803 )
...
* WIP
* reset groups cache after every suite
2018-09-29 06:49:41 -04:00
Julian Lam
545e678e8a
fixes #6726
2018-08-30 15:08:01 -04:00
Julian Lam
9e90d1ea5d
closes #6557
2018-06-11 16:45:25 -04:00
Julian Lam
cb3b2bd27b
closes #6562
2018-06-08 16:01:33 -04:00
Julian Lam
99dc3feeb2
Edit history is now a category-level privilege
...
Closes #6425
2018-06-07 14:00:51 -04:00
Barış Soner Uşaklı
d5e85c2eb3
closes #6476 , closes #6546
2018-06-02 15:54:32 -04:00
Barış Soner Uşaklı
a7267df404
closes #6464
2018-05-28 11:29:41 -04:00
Barış Soner Uşaklı
8e8058ec6e
closes #6497
2018-05-25 12:09:27 -04:00
Barış Soner Uşaklı
e1c6761087
closes #6258
2018-02-28 17:38:31 -05:00
Barış Soner Uşaklı
ac1f7eefe5
closes #2304
2018-01-31 15:20:17 -05:00
Barış Soner Uşaklı
08562ad9cc
closes #6276
2018-01-22 15:01:16 -05:00
Barış Soner Uşaklı
72140e5338
closes #5991 , closes #5884
2018-01-12 17:29:47 -05:00
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
2018-01-03 13:27:34 -05:00
Baris Usakli
025709499c
more fixes
2017-12-20 15:19:22 -05:00
Baris Usakli
242dc41aca
move privileges to same page
2017-12-20 14:49:20 -05:00
Baris Usakli
4a73621dca
chat privilege
2017-12-18 15:43:57 -05:00
Baris Usakli
a19537dc25
closes #6137
2017-11-29 14:04:45 -05:00
Barış Soner Uşaklı
2185480c4e
switch to eachSeries
2017-09-21 19:25:54 -04:00
Barış Soner Uşaklı
5344edc2a7
closes #5885
2017-08-18 20:08:19 -04:00
Barış Soner Uşaklı
e9f8cdc7f0
closes #5855
2017-08-02 17:42:13 -04:00
Barış Soner Uşaklı
38af651072
use _.uniq
2017-06-25 20:00:05 -04:00
Barış Soner Uşaklı
c36f25f761
switch .filter to uniq
2017-06-25 19:05:13 -04:00
Barış Soner Uşaklı
d65f494c6d
closes #5127
2017-06-16 14:25:40 -04:00
Baris Usakli
4903585d88
refactor userPrivileges and groupPrivileges
2017-06-15 14:02:51 -04:00
Barış Soner Uşaklı
59b1d8fbae
Merge pull request #5710 from NodeBB/_lodash
...
Switch from underscore to lodash
2017-05-29 13:38:21 -04:00
Peter Jaszkowiak
d4e7db45b7
Use zipObject, more test-related ignores
2017-05-29 11:23:25 -06:00
Barış Soner Uşaklı
937d6dd4df
fix acp privilege page not loading
2017-05-28 01:10:19 -04:00
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
3d1b1a9423
closes #5706
2017-05-26 23:21:46 -04:00
Barış Soner Uşaklı
8db193ff55
privileges style changes
2017-05-25 21:17:20 -04:00
Barış Soner Uşaklı
59d0815073
closes #5637
2017-04-28 18:48:32 -04:00