Type colour is still shown for private bookings when type is private
Brought to you by:
jberanek
I have the same issue. I do not want to hide the color key, but I want to hide the colors of the booked periods in the generated table. I need only admin can see the background color of the cell non admin users should be e.g. grey only. I set entry.entry_type to PRIVATE, but it has no effect on the background color of the cells in day view. (Raised as a separate ticket from https://sourceforge.net/p/mrbs/support-requests/1121/)
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
I am close to the solution.
In FUNCTIONS_TABLE.INC in row 127 current code is:
$column[$s][$n]["color"] = $row['type']
this shuold be changed thet it take effect only an ADMIN USER.
I tried this one but does not work. I have only bank scrren.
$user = getUserName();
if (authGetUserLevel($user) = 2)
{
$column[$s][$n]["color"] = $row['type'];
}
Yes, I am working on a fix. Hope to commit it tomorrow.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
Great news :)
I have now fixed this in the default branch in changeset ff4f3916c8eb. There are quite a lot of changes so it's best to upgrade to the latest snapshot of MRBS which you can get here. Let me know of any problems.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
My problem is that I made several modification because of the LOG funcionality. Is it possible to see tho modification list somehow? I am afraid it will overwrite the LOG funcionality...
You can see the changes here. On the other hand there are numerous other bug fixes and enhancements in the latest code and sooner or later you're going to have to address the problem of how to merge your changes into the latest code.
You may also be interested in this bug fix concerning private bookings.