Copy and paste article - only admin works?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Copy and paste article - only admin works?

Post by Peekay »

PHPWCMS 1.3.9

I have discovered that Admin users can copy and paste articles from the Article screen, but ordinary users cannot?.

Anyone know a fix? :?
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Re: Copy and paste article - only admin works?

Post by Peekay »

Can anyone point me at the code that sets the permissions for the cut/copy article function? I'm trying to find it, but having no luck at present. :?
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Re: Copy and paste article - only admin works?

Post by Peekay »

OK. If you want to allow ordinary users to cut, copy and paste articles:

include/inc_act/act_structure.php
line 43
change:

Code: Select all

if($_SESSION["wcs_user_admin"] == 1)  { 
to:

Code: Select all

if(($_SESSION["wcs_user_admin"] == 1) || ($_SESSION["wcs_user_admin"] == 0)) { 
This doesn't appear to affect editing or deletion permissions (ordinary user cannot edit articles created by admin for example).
Unless someone knows a better way! :wink:
xinoy
Posts: 60
Joined: Thu 7. Feb 2008, 21:05

Re: Copy and paste article - only admin works?

Post by xinoy »

that should work yes !
Post Reply