Changes between Version 90 and Version 91 of S3/S3AAA
- Timestamp:
- 09/04/12 09:32:03 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3AAA
v90 v91 129 129 ||'''Field name'''||'''Type'''||'''Description'''|| 130 130 ||owned_by_user||integer (reference auth_user)||ID of the user who owns this record[[BR]](defaults to the ID of the user who created the record)|| 131 ||owned_by_ role||integer (reference auth_group)||ID of the group (role) who ownthe record||131 ||owned_by_group||integer (reference auth_group)||ID of the user group that owns the record|| 132 132 133 133 These meta fields are contained in {{{s3_ownerstamp()}}} and also in {{{s3_meta_fields()}}}. 134 134 135 A user is considered the ''owner'' of a record if they are either the individual owner of the record (user ID == {{{owned_by_user}}}), '''or''' they are a member of the owner role ({{{owned_by_role}}} in user roles).136 137 If a record has '''no owner''', i.e. if both {{{owned_by_user}}} and {{{owned_by_role}}} are '''None''', then all authenticated users are considered the owner of this record .135 A user is considered the ''owner'' of a record if they are either the individual owner of the record (user ID == {{{owned_by_user}}}), '''or''' they are a member of the owner group ({{{owned_by_group}}}). 136 137 If a record has '''no owner''', i.e. if both {{{owned_by_user}}} and {{{owned_by_role}}} are '''None''', then all authenticated users are considered the owner of this record (public record). 138 138 139 139 In tables which do not define either of these meta-fields, ownership rules are not applied ({{{uacl}}} only). 140 140 141 ''NOTE: you can have both an individual record owner and an owner role for the same record at the same time, where the individual owner doesn't need to have the owner role.'' 141 '''NOTE:''' you can have both an individual record owner and an owner role for the same record at the same time, where the individual owner doesn't need to have the owner role. 142 143 '''NOTE:''' the {{{owned_by_entity}}} field associates the record with a realm (see #OrgAuth) - it has ''no'' relevance for the ownership of the record by an individual user. 144 142 145 ==== Session-Ownership ==== 143 146 For anonymous users we can make the session own the records, so that a user can edit records they've just created, or read their cached feature queries.