Changes between Version 90 and Version 91 of S3/S3AAA


Ignore:
Timestamp:
09/04/12 09:32:03 (9 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3AAA

    v90 v91  
    129129  ||'''Field name'''||'''Type'''||'''Description'''||
    130130  ||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 own the record||
     131  ||owned_by_group||integer (reference auth_group)||ID of the user group that owns the record||
    132132
    133133These meta fields are contained in {{{s3_ownerstamp()}}} and also in {{{s3_meta_fields()}}}.
    134134
    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.
     135A 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
     137If 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).
    138138
    139139In tables which do not define either of these meta-fields, ownership rules are not applied ({{{uacl}}} only).
    140140
    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
    142145==== Session-Ownership  ====
    143146For 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.