[RESOLVED] menu type 'web link submission' ignores access level 'public'
-
- Joomla! Enthusiast
- Posts: 138
- Joined: Wed Jul 25, 2007 7:53 am
[RESOLVED] menu type 'web link submission' ignores access level 'public'
Problem: menu type 'web link submission' ignores access level setting 'public'
Replicate:
Create new menu item 'submit link' as type 'web link submission layout'
Setting access level = PUBLIC
Browse to front end and click 'submit link' menu
Taken to 403 - Access Denied! page
Public setting should allow access to page.
Replicate:
Create new menu item 'submit link' as type 'web link submission layout'
Setting access level = PUBLIC
Browse to front end and click 'submit link' menu
Taken to 403 - Access Denied! page
Public setting should allow access to page.
Last edited by Anonymous on Fri Oct 12, 2007 12:50 pm, edited 1 time in total.
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
Re: menu type 'web link submission' ignores access level 'public'
Not a bug, know issue.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: menu type 'web link submission' ignores access level 'public'
I think that you must be registered to submit a web link.
The problem is that a public menu link is made to a registered location.
The location is still registered, even though the weblink is not.
The problem is that a public menu link is made to a registered location.
The location is still registered, even though the weblink is not.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
-
- Joomla! Enthusiast
- Posts: 138
- Joined: Wed Jul 25, 2007 7:53 am
Re: menu type 'web link submission' ignores access level 'public'
If the submit link goes to a registered location and is not available to public users, then the menu type 'web link submission layout' should have the setting access level = PUBLIC grey'd out or removed.
Clearly a user cannot be expected to remember each and every admin setting in joomla that doesn't work/is not supported.
AND
Whether the user is logged in or not makes no difference... all users get sent to 403
Clearly a user cannot be expected to remember each and every admin setting in joomla that doesn't work/is not supported.
AND
Whether the user is logged in or not makes no difference... all users get sent to 403
Last edited by bikeman on Wed Oct 10, 2007 10:08 am, edited 1 time in total.
-
- Joomla! Enthusiast
- Posts: 138
- Joined: Wed Jul 25, 2007 7:53 am
Re: menu type 'web link submission' ignores access level 'public'
Actually registered users cannot submit web links, only special users can do this. This is probably not how it's intended to work - at least no one has clarified this point previously.
I live in hope that joomla functionality will oneday be specified somewhere and not just vary depending upon the last developer who touches the code.
I live in hope that joomla functionality will oneday be specified somewhere and not just vary depending upon the last developer who touches the code.
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: menu type 'web link submission' ignores access level 'public'
It's supposed to be that registered can submit weblinks and authors and above can submit content. It even says this in the tool tip when you create the link.
I can confirm that registered users are getting a 404 on clicking the submit llink.
components\com_weblinks\views\weblink\view.html.php
// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < 19) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}
Shouldn't it be < 30? (stupi)
Shouldn't it be <18
Update:
But also, isn't gid gone and replaced by group_id?
I can confirm that registered users are getting a 404 on clicking the submit llink.
components\com_weblinks\views\weblink\view.html.php
// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < 19) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}
Shouldn't it be < 30? (stupi)
Shouldn't it be <18
Update:
But also, isn't gid gone and replaced by group_id?
Last edited by mcsmom on Fri Oct 12, 2007 12:26 pm, edited 1 time in total.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
-
- Joomla! Enthusiast
- Posts: 138
- Joined: Wed Jul 25, 2007 7:53 am
Re: menu type 'web link submission' ignores access level 'public'
at last acceptance that there is a problem
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: menu type 'web link submission' ignores access level 'public'
No, I don't count for that.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
Re: menu type 'web link submission' ignores access level 'public'
Hi Elin,
Thanks for looking into this, I'll have a look asap at the code you provided.
Thanks for looking into this, I'll have a look asap at the code you provided.
-
- Joomla! Enthusiast
- Posts: 138
- Joined: Wed Jul 25, 2007 7:53 am
Re: menu type 'web link submission' ignores access level 'public'
bikeman wrote: registered users cannot submit web links, only special users can do this.
how exactly dont you agree then?mcsmom wrote: It's supposed to be that registered can submit weblinks .. It even says this in the tool tip when you create the link.
Last edited by bikeman on Fri Oct 12, 2007 6:43 pm, edited 1 time in total.
- moijafcor
- Joomla! Enthusiast
- Posts: 218
- Joined: Thu Mar 02, 2006 9:41 am
- Location: Santo Domingo, Dominican Republic
- Contact:
Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ
Sometime ago, on this post I asked for this Web Link engineering issue to be added as a Feature Request for a full change of its logic. As Elin kindly explained there, the way it works and the issues arisen by its behavior are inherited since the Mambo days.bikeman wrote: Problem: menu type 'web link submission' ignores access level setting 'public'
Sure someday this will be properly redesigned.
Saludos.
Nicht mehr!
Los acentos en castellano omitidos intencionalmente. | Les accents et les signes en français omis intentionnellement.
http://bio.moisesjafet.com
Los acentos en castellano omitidos intencionalmente. | Les accents et les signes en français omis intentionnellement.
http://bio.moisesjafet.com
-
- Joomla! Apprentice
- Posts: 17
- Joined: Thu Aug 16, 2007 10:26 pm
Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ
So, is there a fix? I think I have a similar problem.
From registered User menu trying to submit a weblink goes to http://mywebsite.com/index.php?option=c ... &Itemid=52
I get ---- 403 - Access Denied!
From registered User menu trying to submit a weblink goes to http://mywebsite.com/index.php?option=c ... &Itemid=52
I get ---- 403 - Access Denied!
-
- Joomla! Apprentice
- Posts: 6
- Joined: Wed Apr 18, 2007 6:17 pm
Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ
I had the same problem, so I edited the code mentioned/suggested above, and that fixed it:albenda wrote: So, is there a fix? I think I have a similar problem.
-----------------
components\com_weblinks\views\weblink\view.html.php
// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < 18) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}
---------------
I checked yesterday's nightly build (haven't downloaded last night's yet), and that fix wasn't in there yet, but it's easy to make the change manually for now.
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ
Could someone take a look and commit this if it is correct?
This is #7467 in the tracker
This is #7467 in the tracker
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
- tcp
- Joomla! Ace
- Posts: 1548
- Joined: Wed Sep 21, 2005 9:25 am
- Location: Thailand
- Contact:
Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ
Updated in Rev 9462.mcsmom wrote: Could someone take a look and commit this if it is correct?
This is #7467 in the tracker
Registered users are not allowed to submit articles or weblinks. This is a known problem that will be addressed in more detail in a future version. For the time being, I've modified the sample data so that these links are show only for special users and not for registered users.
In reality there needs to be more sophisticated controls about this. In the short-term, the components com_content and com_weblinks could offer a preference that allows registered users to submit information, but before that happens we really need to look at the code for potential security vulnerabilities.
tcp
Your solution for a single-page checkout on any website.
http://moolah-ecommerce.com
http://moolah-ecommerce.com
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: [RESOLVED] menu type 'web link submission' ignores access level 'public'
Well, in reality, since you can set global configuration to make all users authors, if you want to have people submit both, that is fairly simple.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.