The docs tree is laid out like the menus - a menu path is a docs path. Admin Panel / Settings follows the new structure: Visibility.md is Appearance.md, with new Features.md, Feature-Profiles.md, Security.md, Activities-and-Notifications.md and Delete.md; the section indexes, Admin-Panel.md, Admin-Panel-URLs.md (with the moved-pane redirects) and Validation.md follow the live menus, and Who-Sees-What.md explains in one place which layer decides what is shown and what is allowed. Pages are added for the menu entries that had none, each written from the code: every Admin Panel / Problems pane, the member menu, the board header, Board Settings, the All Boards left menu, and the list, swimlane and card menus. Older links to the moved panes are updated across docs/. TODO.md records what documenting the menus found: Edit Profile does not save a username for non-admins, the Support page's signed-out case is unreachable, Create board from this card is hidden from members who can edit the card, All Boards Settings is unreachable, and the Share template targets live in browser storage. Thanks to xet7 !
2.9 KiB
Board header / Visibility
The first control of a board's header controls, after the fold caret: an icon
and the board's current visibility — Private, Signed-in users or
Public. The label and the tooltip are the same expression,
{{_ currentBoard.permission}}, so they always name the current setting. See
the header for where the control sits and when its
label is hidden.
Who can change it
Every signed-in user sees the button. Only a board admin gets the
js-change-visibility class that opens the popup; for everybody else the
button is drawn is-disabled and does nothing. The popup's choices are saved
with Boards.updateAsync, which the server allows only for a board admin.
The popup
boardChangeVisibilityPopup in client/components/boards/boardHeader.jade.
Each row has an icon, the name, a check mark on the current choice, and a
description:
| Choice | Stored permission |
Description |
|---|---|---|
Private (fa-lock) |
private |
Only people added to the board can view and edit it. |
Signed-in users (fa-users) |
instance |
Every signed-in user of this WeKan can view the board; it is never shown to people who are not signed in. Only board members can edit. |
Public (fa-globe) |
public |
Visible to anyone with the link, and can show up in search engines. Only board members can edit. |
Choosing a row calls board.setVisibility() and closes the popup.
- Signed-in users and Public are offered only while Admin Panel /
Settings / Appearance does not allow private boards only
(
tableVisibilityMode-allowPrivateOnly). With that setting on, the popup shows only Private, and a board that is already public or signed-in-users is not displayed: the board page shows thetableVisibilityMode-allowPrivateOnlytext instead. - The Private and Public descriptions can be replaced by an administrator in
Admin Panel / Settings / Appearance
(
customPrivateBoardDesc,customPublicBoardDesc). Empty uses the default text.
Everyone signed in can edit
Below a rule, the popup offers one checkbox, Everyone signed in can edit, when both are true:
- the board is Signed-in users or Public, and
- Admin Panel / Settings / Appearance allows it
(
tableVisibilityMode-allowInstanceEditing).
Ticking it toggles the board's allowsInstanceEditing. Signed-in users who
are not members can then add, edit, move and comment on cards, and become
Normal members when they do.
The same visibility list, without this checkbox, is used in the Create Board
form (createBoardForm), where it sets the new board's visibility.