On Tue, Mar 7, 2017 at 11:33 AM, Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com> wrote:
> See http://jira.xwiki.org/browse/XWIKI-12937 and the comments. The menu > checks only if the current user has view right on the current page because > we cannot know where the user will copy the page. The user may have edit > right on some specific place in the page hierarchy and iterating all the > page hierarchy to see if such a place exists is very costly. > > > Checking for real-only is super fast though so I agree we should do that: > show the copy action if the current user has view right on the current page > and the wiki is not in read-only mode. > I think I made a confusion. I was thinking about the wiki's read-only mode, which bypasses access rights, and which can be used to hide the copy action. If you're referring to users and groups that don't have edit right at wiki level then, as I said in my first part of the reply, we can't do much about it because rights at page level overwrite those a wiki level so even if you deny edit right for a user at wiki level he may still have edit right on some page deep inside the page hierarchy, thus he needs to be able to copy a page there. > > > On Mon, Mar 6, 2017 at 9:42 PM, Stev Williams <flood_d...@hotmail.com> > wrote: > >> Hi, >> >> >> I have recently upgraded our xwiki from 7.4.4 to 8.4.4 and all seemed to >> go well, however one thing has come up in that if a user or a group has >> read only access to the Wiki on 8.4.4 the cog is appearing with just the >> option to Copy. I have tried to copy a page with a read only test account >> and it will not allow the copy which is fine however any ideas why the >> option is showing and is there anything I can do to get rid of it? >> >> Regards >> > >