Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] Authoring - Edit own

Re: Authoring - Edit own 04 Apr 2012 10:36 #1853

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Of course, this is why if you use the publish wizard, others users cannot see user private content.

Published means 'for everybody'.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 10:45 #1854

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Please give me a pillow, i feel so stupid i sould probably hide.....
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 11:00 #1855

  • edwardcox
  • edwardcox's Avatar
  • Offline
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
  • Karma: 12
Ok, so I am confused. I thought that in context a 'record' that is Published is 'visible' - however, I would assume that it is visible only to the Author.

So what you are saying is that regardless of Author, if a record is Published (via Publish Wizard) then it is globally visible to all? and so we should use a default of Not Published?

Sorry, very tired as well. Hope you understand.

Thanks,

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 11:13 #1856

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Posts: 132
  • Thank you received: 19
  • Karma: 7
I have not tested yet this new expecting feature, I just read all the contributions of you gents.

According this
Published means 'for everybody'.
seems as a usefull functionality. It can work like sharing content.
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 11:17 #1857

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Looks like you're right edward.
Three users : Admin, test1 and test2 : admin is super user, others are "registred"
With a published item, everybody sees it.
With an upublished item, only the creator and admin see it.
Last Edit: 04 Apr 2012 11:18 by VeCrea. Reason: ortho
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 11:26 #1858

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
That's the point, and that's why publish wizard is very good used with authoring. ;-)
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 12:01 #1859

  • edwardcox
  • edwardcox's Avatar
  • Offline
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
  • Karma: 12
Still having ACL issues. Admin can rightly View, Edit, Create, Delete all when logged in.
User one can see records created by user one and two. But cannot Edit it's own record.
User two can see records created by user two and one. But cannot Edit it's own record.

New user Registrations are assigned to Group: Clients.
New records all have a Published record that is set to 0 (zero) false.

So close.. yet so far. I'm sure I'll get it right soon. Meanwhile, anyone have any ideas please?

Thank you,

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 12:37 #1860

  • ahv
  • ahv's Avatar
  • Offline
  • New Member
  • \o/ A
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
VeCrea wrote:
Looks like you're right edward.
Three users : Admin, test1 and test2 : admin is super user, others are "registred"
With a published item, everybody sees it.
With an upublished item, only the creator and admin see it.

I'm facing the problem, that with an unpublished item, only the admin see it and NOT the creator, however it should work as you explained. Did you manage to create a component working that way or was your post just theoretical?

Best wishes
Alexander
\o/ A
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 12:54 #1861

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I managed to get it work, and i don't have the problem edward is facing.
Let's go for explanations :
TABLES
1) Create a table.
2) 2 wizards : author and publish, then click on the little green + to get the two corresponding fields. The publish field has a default value of 0 (unpublished), which is set to prefill forms
3) I added a 3rd field, just to get a string value

PAGES
1) Create, for backend, a collection and a 1item
2) Create, for frontend, a collection and 2 1item
Why 2 x 1item ?Because on one you put a fly (display datas), and on the other one you put a form (to add a new data set)
3) Download the component.

INSTALL AND CONFIG THE COMPONENT
1) Install it (duhhh)
2) In the component, go to config
3) In Permissions, for "Registred", allow Create, View Own and Edit Own.

Try it with different users. Works here
The administrator has disabled public write access.
The following user(s) said Thank You: edwardcox

Re: Authoring - Edit own 04 Apr 2012 13:04 #1862

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
@ahv, @edwardcox :

Please give me the ACL's of users that you speak about.
Because sometime you give access, BUT another ACL is forbidding the access, so when it is merged, you lost the ACL authorization.

Please always copy the list of ACL's for the users you speak about.
(And remember that for the moment in sandbox, the configuration is reseted when you regenerate)

In sandbox :
The current ACL is viewable in the tooltip icon, next to the virtual user selectbox.

In your localhost, or production, try to insert theses lines in the template file :
<?php echo("<pre>"); print_r($this->access); echo("</pre>"); ?>

And let' see if you still have the problem.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 13:04 #1863

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
One more precision : don't allow "edit state" for registred users, because they then will be able to see more than what they need to see
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 13:06 #1864

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
In facts, I thought about and I think is not a good idea. So I will not.

Publish state is really important. It should always been given to an Administrator to do the job.
On internet, contents are approved by moderator or admin.


So, maybe another wizard that is more about "Sharing"
Coding is now a piece of cake
Last Edit: 04 Apr 2012 13:07 by admin.
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 13:12 #1866

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Posts: 132
  • Thank you received: 19
  • Karma: 7
To VeCrea: when we do not allow "Edit State" we will not able to use ordering functionality
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 14:08 #1872

  • ahv
  • ahv's Avatar
  • Offline
  • New Member
  • \o/ A
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
I actually think, that the ACL is working as it is suppose to do - The publish/unpublish is not for the common user but for a moderator / admin. So the normal user will not be able to publish/unpublish own data?

In my component the user is only allowed to "create", "edit own", "delete own", "view own"
\o/ A
The administrator has disabled public write access.

Re: Authoring - Edit own 04 Apr 2012 17:48 #1873

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
To etc :
I never use ordering... Maybe it with an example ?
The administrator has disabled public write access.
Time to create page: 0.167 seconds

Get Started