Commit Graph

239 Commits

Author SHA1 Message Date
evazion
bd6ebceda3 Refactor post_approvers_only to approver_only.
Don't duplicate code with post_approvers_only; use the approver_only?
method dynamically defined in `User::Roles.each do ... end`.
2016-10-14 05:04:40 +00:00
evazion
d84184b5f1 Prevent anon/banned/member users from voting (fix #2719).
There was a regression in 6d6d00b; `before_filter :voter_only` was a
no-op in the post vote controller because it merely returned false,
which does not halt the request. The fix is to arrange for a voter_only
method to be defined that properly redirects to the access denied page.
2016-10-14 04:47:51 +00:00
Albert Yi
4bdca44f2e Merge pull request #2702 from evazion/fix/set-admin-permissions
Give full permissions to the starting admin.
2016-10-05 12:46:26 -07:00
evazion
e86a7ae957 Give approve/upload/supervoter permissions to first admin. 2016-10-05 02:15:04 +00:00
evazion
c3b55e80c5 Make default user level and settings configurable.
Remove start_as_gold? and start_as_contributor? from default config
because they don't actually do anything. `git log -G start_as` indicates
they never have done anything.

Add a more general customize_new_user method for setting the starting
user level, permissions and defaults for any other settings.
2016-10-05 01:39:08 +00:00
Albert Yi
c776fb478a Revert "Index and form for bit preferences" 2016-09-23 16:21:09 -07:00
Type-kun
e7586f4e4a Add is_banned to user search params 2016-09-23 11:52:43 -07:00
Type-kun
2e4385b6cd Change user prefs search logic to use index (#2644)
Sadly, array index failed to cover "unset bits" case,
so excluded bits are merged into bigint, and &'d with column,
which turned out more readable and simpler than bit string.
2016-09-23 11:52:43 -07:00
r888888888
1f3515817c fix bug with empty string saved search categories 2016-09-11 01:10:09 -07:00
Type-kun
42f3a4a554 Initial support for #2644 2016-09-11 01:06:27 +05:00
Type-kun
66f0e71c3d Fix duplicate saved search categories in user profile 2016-08-31 00:18:41 +05:00
Type-kun
92b5e5e00d Display supervoter pref in API and CSS (#2641) 2016-08-27 16:11:48 +05:00
Type-kun
ffbf6b6fa0 Display user permissions in API results
Fixes #2640
2016-08-26 21:51:33 +05:00
r888888888
f41c362bf4 keep better track of per-user ip addrs 2016-08-24 15:58:22 -07:00
r888888888
c3b78b1752 add user searches 2016-08-23 18:20:21 -07:00
r888888888
d0bbe27217 include saved searches section in user profiles 2016-08-22 14:59:43 -07:00
r888888888
f5ee618342 fixes #2640: Change some API representations 2016-08-22 10:41:34 -07:00
r888888888
5de9adf0f5 work on saved searches embedded in user profiles 2016-08-19 17:33:42 -07:00
r888888888
d46c6f67b8 fixes #2626: Bypass can_upload? checks for administrators 2016-07-20 12:34:34 -07:00
r888888888
bdd408952b add user option for disabling tagged filenames 2016-05-26 10:16:13 -07:00
r888888888
6d6d00b190 expose voting to non-gold supervoters 2016-03-14 16:52:49 -07:00
r888888888
2a87aad34e implement super voters 2016-02-22 14:11:25 -08:00
r888888888
caf4a28b02 enable user privacy mode for displaying favorites 2016-02-22 12:18:19 -08:00
r888888888
3221ff08f8 hide last_ip_addr field in api responses for users 2015-12-28 12:44:04 -08:00
r888888888
89794a7ef2 add saved search gallery link, can only view your own saved searches, normalize saved search categories 2015-11-24 16:41:03 -08:00
Toks
2d3b7182bc #2523 Enable categorized saved searches by default 2015-11-13 00:14:08 -05:00
r888888888
6514265ca7 support new listbooru changes #2523 2015-11-03 16:50:52 -08:00
Toks
b708f5ea03 Don't allow banned ip addresses to make changes
Previously banned ip addresses couldn't make new accounts, but if they
get an account somehow the ip ban wouldn't prevent them from making
edits.
2015-10-22 20:14:43 -04:00
r888888888
09ca8df6b3 change user deletion scope from 120 days to 60 days 2015-10-19 14:33:05 -07:00
r888888888
6480864718 fixes #2469 2015-10-15 15:24:24 -07:00
Toks
f694c780c6 Forum activity indicator: don't count deleted topics as unread 2015-10-01 14:07:17 -04:00
r888888888
f815d718e1 fixes #2521: User promotion report shows remaining limit instead of limit 2015-09-22 14:10:29 -07:00
r888888888
6297ff8638 reduce factor of comic uploads 2015-09-16 14:02:02 -07:00
r888888888
6e93dedf3d Merge branch 'new-upload-formula' 2015-09-11 15:46:44 -07:00
r888888888
341b29ce41 fix tests 2015-08-18 17:40:53 -07:00
r888888888
e1a28ef117 Revert "Revert "updated formula for #2492""
This reverts commit 6a02e4f3f3.
2015-08-14 13:56:25 -07:00
r888888888
6a02e4f3f3 Revert "updated formula for #2492"
This reverts commit 04ded35e75.
2015-08-14 13:17:03 -07:00
r888888888
04ded35e75 updated formula for #2492 2015-08-13 15:18:27 -07:00
r888888888
e37775afc2 fixes #2480: Report for contributors 2015-08-07 17:23:39 -07:00
r888888888
bf6dd87df8 refactor bit flags code 2015-08-04 16:33:20 -07:00
r888888888
574b11fc14 comment on max bit flag for user prefs 2015-07-06 18:57:43 -07:00
Toks
81f588e021 Add key shortcut to add to favgroup 2015-07-01 11:16:07 -04:00
r888888888
1d9596d7f2 fixes #2417 2015-06-29 18:17:59 -07:00
Toks
04fa5596e2 Favorite groups 2015-06-23 15:25:54 -04:00
Toks
c56d16d336 Put current user first, closes #2063 2015-04-23 09:43:19 -04:00
r888888888
2b5ce48d5c fixes #2230 2014-11-19 21:28:26 -08:00
r888888888
cbf48ad948 add stripe integration for safebooru 2014-11-06 17:03:17 -08:00
r888888888
321e3afa7d enable saved searches for everyone 2014-10-24 16:22:30 -07:00
r888888888
8c52d2f376 increase saved search limit, retry timedout uploads 2014-08-14 12:54:31 -07:00
r888888888
6772566665 fixes #2166 2014-07-23 15:15:47 -07:00