Chapter 11. Capabilities Classes

The 'caps' column in the 'user' table is a 16 bit mask with a bit on for each capability class the user is a part of. Each site can define their own capability classes in etc/ljconfig.pl. Then, each capability class can define its own limits for the following things. The LJ::get_cap() and LJ::get_cap_min() functions will consider the limits of all the classes the member is a part of and return the max or min limit, depending on what it's being used for in the code.

General Capabilities

bookmark_max

(integer) - Maximum number of bookmarks a user can use in their ESN Inbox.

can_post

(boolean) - Can post new entries.

checkfriends

(boolean) - Can use checkfriends.

checkfriends_interval

(integer) - Time, in minutes, before clients can call “checkfriends”.

directory

(boolean) - Can use the Directory to search for users.

disable_can_post

(boolean) - Posting new journal entries is disabled for this account, presumably because a trial period of some sort has expired.

disable_get_comments

(boolean) - Getting new comments in this journal is disabled, presumably because a trial period of some sort has expired.

disable_leave_comments

(boolean) - This account can no longer leave comments, presumably because a trial period of some sort has expired.

domainmap

(boolean) - Can map (CNAME) a vanity domain to their journal URL.

edit_comments

(boolean) - Can edit comments they posted, which have not been replied to or frozen.

emailpost

(boolean) - Can post via an e-mail gateway.

findsim

(boolean) - Can use the similar interests matching feature.

friendsfriendsview

(boolean) - Has “Friends of Friends” /friendsfriends view enabled.

friendspopwithfriends

(boolean) - Can use the “Popular with Friends” tool.

friendsviewupdate

(integer) - Interval in seconds after which user can see new Friends view items.

full_rss

(boolean) - Show the full text in the RSS view.

get_comments

(boolean) - Can receive comments.

getselfemail

(boolean) - Can receive copy by e-mail of own comments.

hide_email_after

(integer) - Hide an account's e-mail address who has not used the site in a time period longer than the given setting. If 0, the e-mail is never hidden. The time period is in days.

inbox_max

(integer) - Maximum number of ESN notifications a user can have in their Inbox.

latest_comments_rss

(boolean) - Can have an RSS feed of journal comments received.

leave_comments

(boolean) - Can leave comments on other accounts.

makepoll

(boolean) - Can make polls.

mass_privacy

(boolean) - Can edit entries en masse, at editprivacy.bml.

maxcomments

(integer) - Total number of comments that can be posted to an entry. Defaults to 5000.

maxfriends

(integer) - Maximum number of accounts a user can add to their “Friends list”.

mod_queue

(integer) - Maximum number of entries that can be queued for approval by a community moderator, for a moderated community.

mod_queue_per_poster

(integer) - Maximum number of entries a user can submit into a community moderation queue, within a period.

moodthemecreate

(boolean) - Can create new mood themes.

no_mail_alias

(boolean) - Disable forwarding of e-mail sent to user's site-based (see useremail cap) address onto user's e-mail address.

rateallowed-failed_login

(integer) - How many times during a period an account can try to log in.

rateallowed-invitefriend

(integer) - How many times within a period a user can invite a friend, at the /friends/invite.bml page.

rateallowed-lostinfo

(integer) - How many times within a period a user can request a lost password/username reminder, at the lostinfo.bml page.

rateperiod-failed_login

(integer) - The period of time an account can try to repeat logging in for.

rateperiod-invitefriend

(integer) - Rate-limiting for the /friends/invite.bmlInvite a Friend” feature. The time period is in minutes.

rateperiod-lostinfo

(integer) - Rate-limiting for the Lost Username/Password lostinfo.bml page. The time period is in minutes, so one hour is a value of 60 while a value of 24*60 is 24 hours.

readonly

(boolean) - No writes to the database for this journal are permitted. (This is used by the cluster management tool: a journal is read-only while it is being moved to another cluster)

s2layersmax

(integer) - Maximum number of allowed layers for a user.

s2props

(boolean) - Can use all S2 properties. Custom hooks used to restrict user ability should be based on this instead of the s2styles cap.

s2styles

(boolean) - Can use all S2 layers.

s2stylesmax

(integer) - Maximum number of S2 styles allowed for a user.

s2viewentry

(boolean) - Lets S2 layouts disable customized EntryPage “fall-back” to BML (actually “s1shortcomings” S2 style).

s2viewreply

(boolean) - Lets S2 layouts disable customized ReplyPage “fall-back” to BML (actually “s1shortcomings” S2 style).

security_filter

(boolean) - Can use view-by-security filters to see all posts with a given security in their journal.

styles

(boolean) - User can create & use their own (S1) styles.

subscriptions

(integer) - Maximum number of ESN subscriptions allowed.

synd_create

(boolean) - Can create syndicated accounts.

tags_max

(integer) - Maximum number of tags a user is allowed. A value of 0 allows unlimited tags If a user has more tags than the limit, they can continue to use existing tags, but cannot create new ones.

textmessaging

(boolean) - Can use text messaging.

todomax

(integer) - Maximum number of todo items allowed.

todosec

(boolean) - Can make non-public todo items.

tools_recent_comments_display

(integer) - Total number of comments a user can see, at /tools/recent_comments.bml.

track_defriended

(boolean) - Can add ESN notifications for being de-friended by other users.

track_pollvotes

(boolean) - Can add ESN subscriptions for tracking when a vote is added to a poll.

track_thread

(boolean) - Can add ESN subscriptions for comment threads.

track_user_newuserpic

(boolean) - Can add ESN subscriptions for a user uploading a new userpic.

userdomain

(boolean) - Can view journal at http://user.$LJ::DOMAIN/

useremail

(boolean) - Has e-mail address @$LJ::USER_DOMAIN

userlinks

(integer) - Maximum number of links users can place in their Links List (“blogroll”), used in S2 styles.

usermessage_length

(integer) - Maximum number of characters a user can use in messages they compose in their ESN Inbox. Defaults to 5000.

userpics

(integer) - Maximum number of userpics allowed.

userpicselect

(boolean) - Can use the AJAX Userpic Selector.

viewmailqueue

(boolean) - Can use the Email Gateway log at /tools/recent_emailposts.bml to view recent e-mail posts, along with any error messages, for troubleshooting.

weblogscom

(boolean) - Can ping weblogs.com when posting new entries.

Local Capabilities

fastserver

(boolean) - User has access to the faster (paid) servers.

paid

(boolean) - User has paid for their account type.