Skip to content

Commit

Permalink
[#1448] usercap cleanup round 1
Browse files Browse the repository at this point in the history
Alphabetize hash keys in %CAP_DEF and use consistent quoting for account caps.
  • Loading branch information
kareila committed Sep 9, 2015
1 parent 871d5bd commit 49f099a
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions etc/config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -270,47 +270,47 @@
# default capability limits, used only when no other
# class-specific limit below matches.
%CAP_DEF = (
activeentries => 0,
'getselfemail' => 0,
'activeentries' => 0,
'can_post' => 1,
'checkfriends' => 0,
'checkfriends_interval' => 300,
'friendsviewupdate' => 30,
'interests' => 150,
'makepoll' => 0,
'maxfriends' => 500,
'moodthemecreate' => 0,
'directorysearch' => 0,
'styles' => 0,
's2styles' => 0,
's2viewentry' => 1,
's2viewreply' => 1,
's2stylesmax' => 0,
's2layersmax' => 0,
'textmessage' => 0,
'userdomain' => 1,
'useremail' => 1,
'userpics' => 5,
'findsim' => 0,
'friendspage_per_day' => 0,
'friendsviewupdate' => 30,
'full_rss' => 1,
'can_post' => 1,
'get_comments' => 1,
'getselfemail' => 0,
'hide_email_after' => 60,
'interests' => 150,
'leave_comments' => 1,
'makepoll' => 0,
'maxcomments' => 10000,
'maxfriends' => 500,
'mod_queue' => 50,
'mod_queue_per_poster' => 5,
'hide_email_after' => 60,
'userlinks' => 10,
'maxcomments' => 10000,
'rateperiod-lostinfo' => 60*60*24, # 24 hours
'rateallowed-lostinfo' => 3,
'rateperiod-failed_login' => 60*5, # 5 minutes
'moodthemecreate' => 0,
'rateallowed-commcreate' => 3,
'rateallowed-failed_login' => 3,
'rateallowed-lostinfo' => 3,
'rateperiod-commcreate' => 86400*7, # 7 days / 1 week
'rateallowed-commcreate' => 3,
'rateperiod-failed_login' => 60*5, # 5 minutes
'rateperiod-lostinfo' => 60*60*24, # 24 hours
's2layersmax' => 0,
's2styles' => 0,
's2stylesmax' => 0,
's2viewentry' => 1,
's2viewreply' => 1,
'staff_headicon' => 0,
thread_expand_all => 0,
thread_expander => 0,
'styles' => 0,
'textmessage' => 0,
'thread_expand_all' => 0,
'thread_expander' => 0,
'track_all_comments' => 0,
'userdomain' => 1,
'useremail' => 1,
'userlinks' => 10,
'userpics' => 5,
'xpost_accounts' => 0,
);

Expand Down Expand Up @@ -345,7 +345,7 @@
'friendsviewupdate' => 0,
'full_rss' => 1,
'getselfemail' => 0,
google_analytics => 0,
'google_analytics' => 0,
'inbox_max' => 2000,
'interests' => 150,
'makepoll' => 0,
Expand All @@ -354,7 +354,7 @@
'mod_queue' => 50,
'mod_queue_per_poster' => 3,
'moodthemecreate' => 0,
popsubscriptions => 0,
'popsubscriptions' => 0,
's2layersmax' => 0,
's2props' => 0,
's2styles' => 0,
Expand All @@ -364,8 +364,8 @@
'synd_create' => 1,
'tags_max' => 1000,
'textmessaging' => 0,
thread_expand_all => 0,
thread_expander => 0,
'thread_expand_all' => 0,
'thread_expander' => 0,
'tools_recent_comments_display' => 10,
'track_all_comments' => 0,
'track_defriended' => 0,
Expand All @@ -389,6 +389,7 @@
'_key' => 'paid_user', # Some things expect that key name
'_visible_name' => 'Paid Account',
'_account_type' => 'paid',
'paid' => 1,
'_refund_points' => 30,
'activeentries' => 1,
'bookmark_max' => 500,
Expand All @@ -398,13 +399,14 @@
'domainmap' => 1,
'edit_comments' => 1,
'emailpost' => 1,
'fastserver' => 1,
'findsim' => 1,
'friendsfriendsview' => 1,
'friendspage_per_day' => 1,
'friendsviewupdate' => 1,
'full_rss' => 1,
'getselfemail' => 1,
google_analytics => 1,
'google_analytics' => 1,
'inbox_max' => 4000,
'interests' => 200,
'makepoll' => 1,
Expand All @@ -413,7 +415,7 @@
'mod_queue' => 100,
'mod_queue_per_poster' => 5,
'moodthemecreate' => 1,
popsubscriptions => 1,
'popsubscriptions' => 1,
's2layersmax' => 150,
's2props' => 1,
's2styles' => 1,
Expand All @@ -423,8 +425,8 @@
'synd_create' => 1,
'tags_max' => 1500,
'textmessaging' => 1,
thread_expand_all => 1,
thread_expander => 1,
'thread_expand_all' => 1,
'thread_expander' => 1,
'tools_recent_comments_display' => 100,
'track_all_comments' => 0,
'track_defriended' => 1,
Expand All @@ -438,14 +440,13 @@
'userpicselect' => 1,
'viewmailqueue' => 1,
'xpost_accounts' => 3,
'paid' => 1,
'fastserver' => 1,
},
'4' => { # 0x10
'_name' => 'Premium Paid',
'_key' => 'premium_user',
'_visible_name' => 'Premium Paid Account',
'_account_type' => 'premium',
'paid' => 1,
'_refund_points' => 41,
'activeentries' => 1,
'bookmark_max' => 1000,
Expand All @@ -455,13 +456,14 @@
'domainmap' => 1,
'edit_comments' => 1,
'emailpost' => 1,
'fastserver' => 1,
'findsim' => 1,
'friendsfriendsview' => 1,
'friendspage_per_day' => 1,
'friendsviewupdate' => 1,
'full_rss' => 1,
'getselfemail' => 1,
google_analytics => 1,
'google_analytics' => 1,
'inbox_max' => 6000,
'interests' => 250,
'makepoll' => 1,
Expand All @@ -470,7 +472,7 @@
'mod_queue' => 100,
'mod_queue_per_poster' => 5,
'moodthemecreate' => 1,
popsubscriptions => 1,
'popsubscriptions' => 1,
's2layersmax' => 300,
's2props' => 1,
's2styles' => 1,
Expand All @@ -480,8 +482,8 @@
'synd_create' => 1,
'tags_max' => 2000,
'textmessaging' => 1,
thread_expand_all => 1,
thread_expander => 1,
'thread_expand_all' => 1,
'thread_expander' => 1,
'tools_recent_comments_display' => 150,
'track_all_comments' => 1,
'track_defriended' => 1,
Expand All @@ -495,8 +497,6 @@
'userpicselect' => 1,
'viewmailqueue' => 1,
'xpost_accounts' => 5,
'paid' => 1,
'fastserver' => 1,
},
# a capability class with a name of "_moveinprogress" is required
# if you want to be able to move users between clusters with the
Expand All @@ -510,6 +510,7 @@
'_key' => 'permanent_user',
'_visible_name' => 'Seed Account',
'_account_type' => 'seed',
'paid' => 1,
'activeentries' => 1,
'bookmark_max' => 1000,
'checkfriends' => 1,
Expand All @@ -518,13 +519,14 @@
'domainmap' => 1,
'edit_comments' => 1,
'emailpost' => 1,
'fastserver' => 1,
'findsim' => 1,
'friendsfriendsview' => 1,
'friendspage_per_day' => 1,
'friendsviewupdate' => 1,
'full_rss' => 1,
'getselfemail' => 1,
google_analytics => 1,
'google_analytics' => 1,
'inbox_max' => 6000,
'interests' => 250,
'makepoll' => 1,
Expand All @@ -533,7 +535,7 @@
'mod_queue' => 100,
'mod_queue_per_poster' => 5,
'moodthemecreate' => 1,
popsubscriptions => 1,
'popsubscriptions' => 1,
's2layersmax' => 300,
's2props' => 1,
's2styles' => 1,
Expand All @@ -543,8 +545,8 @@
'synd_create' => 1,
'tags_max' => 2000,
'textmessaging' => 1,
thread_expand_all => 1,
thread_expander => 1,
'thread_expand_all' => 1,
'thread_expander' => 1,
'tools_recent_comments_display' => 150,
'track_all_comments' => 1,
'track_defriended' => 1,
Expand All @@ -558,13 +560,13 @@
'userpicselect' => 1,
'viewmailqueue' => 1,
'xpost_accounts' => 5,
'paid' => 1,
'fastserver' => 1,
},
'7' => { # 0x80
'_name' => 'Staff',
'_key' => 'staff',
'_visible_name' => 'Staff Account',
'staff_headicon' => 1,
'paid' => 1,
'activeentries' => 1,
'bookmark_max' => 1000,
'checkfriends' => 1,
Expand All @@ -573,13 +575,14 @@
'domainmap' => 1,
'edit_comments' => 1,
'emailpost' => 1,
'fastserver' => 1,
'findsim' => 1,
'friendsfriendsview' => 1,
'friendspage_per_day' => 1,
'friendsviewupdate' => 1,
'full_rss' => 1,
'getselfemail' => 1,
google_analytics => 1,
'google_analytics' => 1,
'inbox_max' => 6000,
'interests' => 250,
'makepoll' => 1,
Expand All @@ -588,7 +591,7 @@
'mod_queue' => 100,
'mod_queue_per_poster' => 5,
'moodthemecreate' => 1,
popsubscriptions => 1,
'popsubscriptions' => 1,
's2layersmax' => 300,
's2props' => 1,
's2styles' => 1,
Expand All @@ -598,8 +601,8 @@
'synd_create' => 1,
'tags_max' => 2000,
'textmessaging' => 1,
thread_expand_all => 1,
thread_expander => 1,
'thread_expand_all' => 1,
'thread_expander' => 1,
'tools_recent_comments_display' => 150,
'track_all_comments' => 1,
'track_defriended' => 1,
Expand All @@ -613,9 +616,6 @@
'userpicselect' => 1,
'viewmailqueue' => 1,
'xpost_accounts' => 9,
'paid' => 1,
'fastserver' => 1,
'staff_headicon' => 1,
},
8 => { _name => 'beta', _key => 'betafeatures' }, # 0x100
);
Expand Down

0 comments on commit 49f099a

Please sign in to comment.