The template reference currently lists three user object properties
which don't make much sense to me:
# subscription: returns the first subscription assigned to this user;
unset if the user was not a reader
# is_admin: true if the user was not a reader
# has_permission(<permission_name>): true if the user was not a reader
and had the given permission
Would it be more accurate to say the following?
# subscription: returns the first subscription assigned to this user;
unset if the user is a staff member
or:
# subscription: returns the first subscription assigned to this user;
unset if the user is not a subscriber
also:
# is_admin: true if the user is a staff member and has been given the
'Administrator' role in the Newscoop administration interface
# has_permission(<permission_name>): true if the user is a staff member
and has been given a specific permission in the Newscoop administration
interface
Thanks for all the help guys, the Cookbook is nearly ready :-)
I think that both old and new interpretations are correct, but for the sake
of easier understanding, you may describe it your way. Maybe Mugur has
something to add to this, dough.
> Hi devs,
>
> The template reference currently lists three user object properties
> which don't make much sense to me:
>
> # subscription: returns the first subscription assigned to this user;
> unset if the user was not a reader
>
> # is_admin: true if the user was not a reader
>
> # has_permission(<permission_name>): true if the user was not a reader
> and had the given permission
>
>
> Would it be more accurate to say the following?
>
> # subscription: returns the first subscription assigned to this user;
> unset if the user is a staff member
>
> or:
>
> # subscription: returns the first subscription assigned to this user;
> unset if the user is not a subscriber
>
> also:
>
> # is_admin: true if the user is a staff member and has been given the
> 'Administrator' role in the Newscoop administration interface
>
> # has_permission(<permission_name>): true if the user is a staff member
> and has been given a specific permission in the Newscoop administration
> interface
>
>
> Thanks for all the help guys, the Cookbook is nearly ready :-)
>
> Cheers!
>
> Daniel
>
>
-- Ljuba Rankovic Senior Front End Developer, Sourcefabric ljuba.rankovic@sourcefabric.org
Re "is_admin" the proper description is: "true if the user was a staff
member" - which means the user can log in to the admin interface. The user
does not need to be administrator type. This is confusing, I know, but this
is the current functionality.
> Hi devs,
>
> The template reference currently lists three user object properties
> which don't make much sense to me:
>
> # subscription: returns the first subscription assigned to this user;
> unset if the user was not a reader
>
> # is_admin: true if the user was not a reader
>
> # has_permission(<permission_name>): true if the user was not a reader
> and had the given permission
>
>
> Would it be more accurate to say the following?
>
> # subscription: returns the first subscription assigned to this user;
> unset if the user is a staff member
>
> or:
>
> # subscription: returns the first subscription assigned to this user;
> unset if the user is not a subscriber
>
> also:
>
> # is_admin: true if the user is a staff member and has been given the
> 'Administrator' role in the Newscoop administration interface
>
> # has_permission(<permission_name>): true if the user is a staff member
> and has been given a specific permission in the Newscoop administration
> interface
>
>
> Thanks for all the help guys, the Cookbook is nearly ready :-)
>
> Cheers!
>
> Daniel
>
>