The Joomla! Forum ™






Post new topic Reply to topic  [ 26 posts ] 
Author Message
PostPosted: Sat Nov 19, 2011 10:34 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 26, 2011 6:57 am
Posts: 12
Hi, today i stumbled on following error (if it is an error):
i need to create a user that is able only to edit articles on my website. He shouldn't be allowed to do anything else. So i added him to "Manager" group and specifically set permissions of this group so that he is denied to configure, create, delete and publish/enable any article. He has an access to and can edit any article.

The problem is: with permissions set like that the user is unable to edit any article, because category dropdown list is empty which in turn rises an error of incorrectly filled form (completly true as no category is set).

Additional fun fact: when i give the user permission to create articles categories are listed in the form (while editing an existing article).

In short: being unable to create an article makes the user unable to edit an article.

Is there any reasonable explanation to this? Or, perhaps, a way to fix it? My guess is that sth is wrong with conditions to display category list. In which file should i look for it?

What i tried:
- updating joomla! from 1.7.2 to 1.7.3
- having lots of fun with setting and unsetting permissions


Top
 Profile  
 
PostPosted: Sat Nov 19, 2011 11:16 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
You want a user to be able to edit Articles but not be able to create any ?

That appears to be illogical for hierarchy but it is possible. I just tested and Deny create (Article manager Options) prevents the Manager from creating Articles in the front end an from inside Admin.

Which Options screen are you editing ? Have you got the User in more than one User Group ?

Addendum
It's easier to set create a Group with the Manager group as Parent then edit the permisions of the new group.
Also it's easier to select a Group one level lower than the Permissions you need then add the extra. By selecting a Group with more privileges and removing them is more work and can often mean that some privileges are missed when being removed.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Sun Nov 20, 2011 9:49 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 26, 2011 6:57 am
Posts: 12
Hi. Thank you very much for your answer.
Yes, if I deny the user to create articles (in article manager options) he can't create articles. But it also make scategory dropdown list empty, so the user is unable to do any editing. Perhaps it will be better explained with picture:

Permissions for user set in article manager options:
http://dl.dropbox.com/u/17677544/joom_user_priv.png

As you can see, he should be able to edit.

Editing article:
Image

Category list is empty. User can edit all articles, but can't save changes, because the form is filled incorrectly.

The user is only in the Manager group.
It is the same if I create new user group, as you suggested, and add permissions to it.
No difference between changing permissions in global config and in article options.

I managed to walk around the issue partialy.
I set all the persmissions for manager group as inherit (as they are defaultly not allowed to create) and then i set permissions in categories (one at a time) that allowed the user to create articles within given category. Not exactly elegant but it got rid of "new article" button in control panel and corresponding option in menu. Only icons in article edit form reveal that user has ability to create new article ("Save & new", "Save as a copy").
So, the problem is generally solved, but if you happen to know a better solution to it, please share :)

Again, thank you for your help :)


Top
 Profile  
 
PostPosted: Sun Nov 20, 2011 2:58 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
That appears correct because if a User is denied Create then to choose a Category to save it to would be (in essence) creating in a Category. But I will check further.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Sun Nov 20, 2011 3:09 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 26, 2011 6:57 am
Posts: 12
That would appear correct if the User was creating new article in category or transfering existing article from one category to another. Then Create permission would be required - i totally agree with that. But while editing an article that already is in a category, User should be able to save changes made to that article in that very category. In my view there should be exactly one position in category dropdown menu - name of the category that article already belongs to.

Thanks for looking into that.


Top
 Profile  
 
PostPosted: Sun Nov 20, 2011 3:23 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
zir wrote:
... - i totally agree with that. But while editing an article that already is in a category, User should be able to save changes made to that article in that very category. In my view there should be exactly one position in category dropdown menu - name of the category that article already belongs to.
....

That thought came to me as well and have asked in bugsquad groups to see what the official answer is.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Mon Nov 21, 2011 12:57 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
Personally
As a site Owner
If I didn't trust a user to create Articles I would not trust them to edit Articles edited by SU's or other users.
As a user
If someone who did not have create rights edit one of my Articles then grrrrrrrrrrrrrr how dare they :D

But the consensus appears to be that Edit Articles but not Create Articles should be allowed and not having the category (it belongs to) is a bug. It is being looked into.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Mon Nov 21, 2011 9:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 26, 2011 6:57 am
Posts: 12
Thanks for your time, Webdongle.
Just to clarify: "the user" is a customer that has paid for five tab website. Working with him was not a pleasant experience, so he is not going to have sixth tab, even if I have to rewrite whole Joomla, solely for that purpose :D

Cheers!


Top
 Profile  
 
PostPosted: Mon Nov 21, 2011 9:44 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
Like I said
Quote:
As a site Owner
If I didn't trust a user to create Articles I would not trust them to edit Articles edited by SU's or other users.
As a user
If someone who did not have create rights edit one of my Articles then grrrrrrrrrrrrrr how dare they


But the consensus is that it should be allowed. Someone has said they will look into it. Not sure how long it will take.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Mon Nov 28, 2011 11:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 26, 2007 10:53 pm
Posts: 43
I need this fix also.

My application is that I want to make a page for my user to be able to control, and only that one page as it sits. Definitely cant do that now, its creating a hang up on my development.


Top
 Profile  
 
PostPosted: Thu Dec 01, 2011 12:54 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 07, 2009 6:48 pm
Posts: 12
:) Is it possible at all to edit / submit an article on frontend by users? I tried many tomes and many people too and in vain. No matter how you set permisiions you have nothing. What should I do to be able to solve this problem? I mean Joomla 1.7 .


Top
 Profile  
 
PostPosted: Thu Dec 01, 2011 1:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 26, 2007 10:53 pm
Posts: 43
andrzej61 wrote:
:) Is it possible at all to edit / submit an article on frontend by users? I tried many tomes and many people too and in vain. No matter how you set permisiions you have nothing. What should I do to be able to solve this problem? I mean Joomla 1.7 .


Sure. I have mine set up for that right now. I made the user an author and on the permissions for editor set to edit allow which is default.

To submit new article, make sure create is set to allow for the permissions of users you want to create and create a menu item type as articles > create new article.

Unfortunately, right now if you want it so a user can not create a new article and edit only their own articles (ie, a page is made for them by the admin and the admin sets them as owner), when the user goes to edit this page, it can not be saved because the category for the article blanks out and does not populate appropriately (waiting for a fix)


Top
 Profile  
 
PostPosted: Thu Dec 01, 2011 1:33 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
Yes, front end editing is possible. Try with a standard Template to see if you can get it to work.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Thu Dec 01, 2011 4:06 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 07, 2009 6:48 pm
Posts: 12
:( It gives 404 no matter who is logged into the front. Superuser - 404 if I want to "Submit an article" using button in User menu.
Beez 20 is a standard template for J1.7


Top
 Profile  
 
PostPosted: Thu Dec 01, 2011 9:01 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 13, 2010 7:09 pm
Posts: 15
Ive got a similar issue.

I have two groups Author and Publisher. I only want the author's to be able to create articles and the publisher is the one that edits and publishes said articles.
but when I give the publisher edit permissions at the article level it gives them edit permissions for that category as well (where they are able to edit the name of the category)


Top
 Profile  
 
PostPosted: Fri Dec 02, 2011 7:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 26, 2007 10:53 pm
Posts: 43
MadMan666 wrote:
Ive got a similar issue.

I have two groups Author and Publisher. I only want the author's to be able to create articles and the publisher is the one that edits and publishes said articles.
but when I give the publisher edit permissions at the article level it gives them edit permissions for that category as well (where they are able to edit the name of the category)


Apparently they are aware of this issue but have not fixed it yet...Waiting for fix myself.


Top
 Profile  
 
PostPosted: Sat Dec 03, 2011 2:23 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 07, 2009 6:48 pm
Posts: 12
;D I have now everything perfect. :laugh: Just a fresh installation. Some extension made the problem. They are having them definitely too many on Joomla Extension :D We mustn't install ALL !!!!!!!!!!!!! :D


Top
 Profile  
 
PostPosted: Sat Dec 03, 2011 3:02 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 26, 2007 10:53 pm
Posts: 43
The rest of us are still waiting for a different fix.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 11:28 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 15, 2011 9:59 pm
Posts: 5
Is there a solution to this? I have the same problem. Using the standard Beez 20 template while just setting up the site. No additional extensions installed.

When I log in as a Superuser, I have full control over everything from the front end. When I log in as a Registered user (from the front end), however, I can access the create article form, but the Category drop down displays no categories, so I cannot submit the form.

Permissions for Registered users are set to allow Create and Edit Own across the site, I even doubled checked that it was set that way in Categories and Articles.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 6:27 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
If you want Registered users to edit but not create then just set the Permissions in the category you want them to edit or ... in Global configuration. You could also create a user group with Registered as parent.
Attachment:
Capture 181.PNG


See http://docs.joomla.org/Access_Control_L ... 5/Tutorial for tutorial.


You do not have the required permissions to view the files attached to this post.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 9:03 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 15, 2011 9:59 pm
Posts: 5
Ah, I guess I misread, because there were other responses in this thread. I want users to be able to both create and edit their own articles, but the problem is that with both Create and Edit Own set to allowed across the board, for some reason the Category drop down is still empty.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 9:17 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
theophila wrote:
Ah, I guess I misread, because there were other responses in this thread. I want users to be able to both create and edit their own articles,...
Then just do as above but edit the Permissions to suit


theophila wrote:
... for some reason the Category drop down is still empty.
A screen shot of that would help.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 9:34 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 15, 2011 9:59 pm
Posts: 5
I'm sorry; thanks for helping, but why is it that responses completely ignore what I've stated - twice - that I've done? I HAVE edited permissions, and I even explicitly said what the permissions were set to, but since I am obviously not to be believed, here are the requested screenshots. I could have just as easily referred to the screenshots already posted above.

Permissions for Registered Users, as stated before, set to allow Create and Edit Own
Attachment:
Registered-Permissions.gif


Category Down Empty when logged in on the front end as a Registered user.
Attachment:
Empty-Category.gif


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 9:48 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
theophila wrote:
... but why is it that responses completely ignore what I've stated - twice - that I've done? I HAVE edited permissions, and I even explicitly said what the permissions were set to, but since I am obviously not to be believed, ...

It is not a matter of not believing you. I was not understanding fully what you meant. Now I see because of the second image. I can now experiment with some settings on my test install.

just a few more questions (so I can 'see' your site in my minds eye)
  • How are you reaching the edit screen, menu item ... clicking edit on an Article/Category ... ?
  • Have you tried with different Templates ?


Addendum
Global settings
Attachment:
Capture 182.PNG


Front end
Attachment:
Capture 183.PNG


Menu item used to reach the edit screen
Attachment:
Capture 184.PNG


You do not have the required permissions to view the files attached to this post.

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Sat Apr 28, 2012 11:58 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 15, 2011 9:59 pm
Posts: 5
Just checking in to update that these were already both global permissions as well as set for articles as well. It did not matter which theme I used, same results, unless I was logged in as an administrator. I gave up.


Top
 Profile  
 
PostPosted: Sun Apr 29, 2012 12:02 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23362
Location: @Webdongle
PM me a SU login and I can take a first hand look ?

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ] 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group