Submit HTML article & Submit BBC article links in User Info box are not displayed when membergroup does not have permission to Upload Files.
HM, have read that sentens several times now, and to me it seems to be normal, if they are not allowed to use a function, why should theyhave a link show that function ?
Submit Articles should be different than Upload Files, no? If you give them permission to only Submit Articles, the link does not show up to Submit Articles. If you give them permission to Submit Articles AND Upload files, both links show up.
- Permission check for uploading files trapped the check for submitting articles. Fixed for v1.0beta4
A quickfix:
Open Themes/default/TPBlocks.template.php and find:
// do not show if none is availalable
if($context['TPortal']['can_submit_article']==1 || allowedTo(array('tp_dlupload','tp_dlmanager','tp_settings','tp_articles','tp_blocks','tp_linkmanager','tp_teampage','tp_gallery')))
{
Replace that with:
// do not show if none is availalable
if($context['TPortal']['can_submit_article']==1 || allowedTo(array('tp_dlupload','tp_dlmanager','tp_settings','tp_articles','tp_blocks','tp_submithtml','tp_submitbbc')))
{
There's a residual bug related to this
SMF: 1.1.10
TP: 1.0.683
Theme: Rhino114 (Does the same with default theme).
When logged in as a user, if they are allowed to submit articles (bbc, html or both) but not to upload files a scrollbar is created in the user box because of an extra bullet with no link beside it.
I'm assuming it's where the "Upload file" link would be.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fericgagne.info%2Fgallery2%2Fd%2F783-1%2FTPUserBoxBug.JPG&hash=a602c94b268198bf91541f2d28d2697f2434bf1e)