Do not forget to run bin/migrate and to check the config file config.default.php.
New policy variables inside:
// Policy features
'policy' => [
// Adds the prefix to the visual text but do not affect the link
'telegram_visual_prefix' => '', //keep it empty - users without telegram, may be buggy
// Non-staff others profile link generation - False = empty link / True = message
'non_staff_message_shortcut' => true,
// Non-Staff - Use Telegram for message. False > uses internal message system
'non_staff_message_via_telegram' => true,
],
[Add]
New awesome theme add/created by @balenty
New policy flag telegram_visual_prefix
Only the text displayed gets the prefix while not touching the link. For example, we can add '@'
Force remove @ from the telegram handler when rendering link - from the database (old data)
New policy flag non_staff_message_shortcut
Responsible for profile link generation for all critters - affects viewing others profiles
True (Default) = Create a link to send internal message to the target user
False = Disable the link creation - Just shows the name... no link
Privilege Group: Staff - Internal
Privilege: user.type.internal_staff for internal staff
Migration script for the new Privilege Internal Staff
Add group and privilege
Add the new privilege to groups: Bureaucrat, Developer, Shift Coordinator
New config policy: non_staff_message_via_telegram False = Use internal message system / True = Use telegram (if exist)
Proper description for the function render_profile_link
[Change]
Fix: Wrong profile link when departure date is missing
Fix: config variable telegram_visual_prefix set to empty
Guest - can't see contacts
Non staff - profile (others) access is restricted
Other small stuff not relevant to be documented
New parameter for function render_profile_link -> yes, not ideal but later to be improved
If telegram handler is available, it will be used, if not, default to internal message system
Add explicit variables declaration for the function render_user_departure_date_hint and User_Nick_render
Before deploy
Do not forget to run
bin/migrate
and to check the config fileconfig.default.php
. New policy variables inside:[Add]
telegram_visual_prefix
non_staff_message_shortcut
user.type.internal_staff
for internal staffInternal Staff
non_staff_message_via_telegram
False = Use internal message system / True = Use telegram (if exist)render_profile_link
[Change]
telegram_visual_prefix
set to emptyrender_profile_link
-> yes, not ideal but later to be improvedrender_user_departure_date_hint
andUser_Nick_render