Page 1 of 1

[URGENT] Copy and paste doesnt work for non admin?!

Posted: Fri 2. Sep 2005, 12:35
by deanloh
Somebody has to verify this: I just found out, without admin rights, a user is not able to perform copy and paste of articles.

If this is true, I'm going to face with serious problem. I have just spent 30 hours on a project, and it really got my in the spot when the client threw me this one thousand dollar question: why cant he paste the article in any section?

And if this is not true, then what could be wrong?

Posted: Fri 2. Sep 2005, 13:09
by Kosse
Hi Deanloh,

I confirm what u said, just tested and u're right, a "normal" user can copy an article but... not paste!!! in dev 1.2.5

I don't know why... meanwhile give him admin rights?

Cheers

Posted: Fri 2. Sep 2005, 14:34
by deanloh
Kosse

Although its a very bad news, but I appreciate your response and confirmation.

There are 8 pulishers who are assigned as users. It's not possible to let them have admin rights. This is going to be disasterous... Everyone please pray for me...

Posted: Fri 2. Sep 2005, 15:15
by frold
Hallo,

a normal user can only edit articles where he is a articel owner - that is why you cant copy and paste articles your not a owner off..

Posted: Fri 2. Sep 2005, 15:42
by Kosse
deanloh wrote:Kosse
Although its a very bad news, but I appreciate your response and confirmation.
There are 8 pulishers who are assigned as users. It's not possible to let them have admin rights. This is going to be disasterous... Everyone please pray for me...
While I would do it if it could help, I think that praying is not the answer... ;)
Frold wrote: a normal user can only edit articles where he is a articel owner - that is why you cant copy and paste articles your not a owner off..
Frold is right :!: , I forgot about that :!: :!: ... What you have to do is re-assign all articles to their respective owners and they will be able to edit it. And what is the trouble of they being admin? You can create a sort of admin2 (in mysql, create a row, I think there are some posts in forum about that) and hide some functionnalities in backend (just navigation for example), that should do it .

Or create a "general user" if they want their articles to be copied, eg name: general_user // pass: xxxxxx
So evereyone can edit it because they all got that user and pass. Not a real solution but ...

Cheers

Posted: Fri 2. Sep 2005, 18:55
by deanloh
Kosse wrote:What you have to do is re-assign all articles to their respective owners and they will be able to edit it. And what is the trouble of they being admin? You can create a sort of admin2 (in mysql, create a row, I think there are some posts in forum about that) and hide some functionnalities in backend (just navigation for example), that should do it .

Or create a "general user" if they want their articles to be copied, eg name: general_user // pass: xxxxxx
So evereyone can edit it because they all got that user and pass. Not a real solution but ...
Actually, this was exactly what I did: created a general username, and let all 8 of the publishers use it to login. And I had made sure to assign the article ownership to this username.

But I think I should give the database hacking a try. If someone has a proven method already, please share. Thanks...

Posted: Sat 3. Sep 2005, 07:16
by deanloh
Ok, I found this thread, and it seems like it's a bit old, probably for older version of phpwcms.

http://phpwcms.de/forum/viewtopic.php?t ... ser+rights

Somehow I tried to follow through the instruction, added the user_radac field into mysql, and pasted the code to phpwcms.php, but didn't see it working.

I might have posted the code at wrong places as the instruction wasnt very clear.

Can someone, if got a spare moment, help me test this method in 1.2.5 and see if you can figure out if it works?

I'm willing to pay, as long as it works. Many times I wanted to donate, but I held back when I faced sticky situation like this... what can I say?

Posted: Sat 3. Sep 2005, 07:32
by Ben
dean,

Too bad this mod (http://www.phpwcms.de/forum/viewtopic.php?t=6175) wasn't released to the public, yet! I think it would really solve your problems and then some.