»Chapter 7. 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 cgi-bin/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.

This text should reflect a different view, as the developer is writing the cap _for_ the administrator.

General Capabilities

can_post

(boolean) - Can post new entries

checkfriends

(boolean) - User can use checkfriends.

checkfriends_interval

(integer) - Time before clients can call "checkfriends" (use min).

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.

emailpost

(boolean) - User has ability to post via an email gateway.

findsim

(boolean) - User is able to use the similar interests matching feature

friendsfriendsview

(boolean) - User's "friends of friends" /friendsfriends view is enabled

friendspopwithfriends

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

friendsviewupdate

(integer) - After how many seconds user see new friends view items.

full_rss

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

get_comments

(boolean) - Can receive comments

hide_email_after

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

leave_comments

(boolean) - Can leave comments on other accounts

makepoll

(boolean) - User can user make a poll

maxfriends

(integer) - Maximum number of friends that are allowed per account

moodthemecreate

(boolean) - User can create new mood themes.

rateallowed-failed_login

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

rateperiod-failed_login

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

readonly

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

s2everything

(boolean) - Can use all properties of S2 layouts

styles

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

synd_create

(boolean) - User can create syndicated accounts.

textmessage

(boolean) - User can use text messaging.

todomax

(integer) - Maximum number of todo items allowed

todosec

(boolean) - Can user make non-public todo items?

userdomain

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

useremail

(boolean) - User has email address @$LJ::USER_DOMAIN

userpics

(integer) - Maximum number of user pictures allowed.

weblogscom

(boolean) - Allow the account to ping weblogs.com with new updates

Local Capabilities

fastserver

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

paid

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