_me
If the current user is a Person in the current Space, return that Person --
Function
_me
(warnIfNotLocal) -> Thing Type
- warnIfNotLocal (optional)
- Iff true, give a warning if this isn't a local Person. Iff false, produce Empty
- Produces
- The Person who created the Thing, if known. This may be empty.
_me is the usual way to customize a Space based on who is looking at it. If the page is being viewed by
a logged-in User, and they are a Member of this Space, it produces their Person record.
If the viewer isn't logged in, or isn't a Member, this will produce a Warning. If you don't want a Warning (for
example, if you want to be able to do something else if this isn't a local Person), say it as:
_me(warnIfNotLocal = false)
NOTE: the high concept of _me is important, and will be continuing, but the details are likely to evolve a great
deal, to make it more usable. So don't get too invested in the current behaviour.