[Xerte-dev] Re: Changing Ownership of a Project in Toolkits

Pat Lockley patrick.lockley at googlemail.com
Mon Feb 27 11:44:56 GMT 2012


you should get an alert whenever you use that form - the code should
probably be changed.

Nowhere in the flow is a message to say "is admin only"

So put a print_r($_SESSION) in management.php to see if that is working
properly (hence the is_user_admin) problems.

On Mon, Feb 27, 2012 at 11:43 AM, Julian Tenney <
Julian.Tenney at nottingham.ac.uk> wrote:

> I’m not sure what you just said.****
>
> ** **
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 27 February 2012 11:39
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Changing Ownership of a Project in Toolkits****
>
> ** **
>
> that form calls ****
>
> ** **
>
> change_owner ****
>
> ** **
>
> which calls****
>
> ** **
>
> website_code/php/management/change_owner.php****
>
> ** **
>
> which has no return statement and should go to****
>
> ** **
>
> change_owner_stateChanged****
>
> ** **
>
> which alerts a message - regardless of whether admin fails****
>
> ** **
>
> edit management.php and put a print_r($_SESSION) in the code****
>
> On Mon, Feb 27, 2012 at 11:28 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:****
>
> Definitely not working when I change that file, not sessions thing, so it
> would appear that is_user_admin() is returning false. Just about reaching
> the point where it would be quicker to just manually do it…****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 27 February 2012 11:24****
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Changing Ownership of a Project in Toolkits****
>
>  ****
>
> if you set a password in sitedetails, yep****
>
> On Mon, Feb 27, 2012 at 11:22 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:****
>
> Can I log into mamangement.php on localhost / xampp?****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 27 February 2012 10:30
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Changing Ownership of a Project in Toolkits****
>
>  ****
>
> I'm not sure why it isn't there, given that's where I would have written
> it......****
>
>  ****
>
> On Mon, Feb 27, 2012 at 10:23 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:****
>
> Looks like you need to upgrade your install.****
>
> Oh man, we’re pretty slack here at Notts when it comes to keeping in synch
> with stuff…****
>
>  ****
>
> ;-)****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 27 February 2012 10:23****
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Changing Ownership of a Project in Toolkits****
>
>  ****
>
> It used to actually be on the management page, not on the properties
> window. There was a combo box.****
>
>  ****
>
> Lines 37-57 of website_code/php/management/user_templates.php in the SVN
> show it.****
>
>  ****
>
> Looks like you need to upgrade your install.****
>
>  ****
>
> On Mon, Feb 27, 2012 at 10:12 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:****
>
> Yeah, I go to user templates, select me, the templates list opens, I click
> view on one, then properties, but then I can’t give it… it does appear I
> can share it though. But here’s another potential problem: in this case
> (usual one) staff member has left, didn’t give their projects, new staff
> member has asked for about 40 projects to be ‘given’ to her. If they are in
> use, the URLs shouldn’t change, so I could share them with her, and leave
> the URLs intact, but then she can’t do all the things she will need to be
> able to do. If I give her the projects, the URLs change. I know this is
> just a  FOL, and I’m not sure how else it could be, but it’s a bit of a
> pain – especially for 40 odd projects.****
>
>  ****
>
> ****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Ron Mitchell
> *Sent:* 27 February 2012 09:41****
>
>
> *To:* 'For Xerte technical developers'****
>
> *Subject:* [Xerte-dev] Re: Changing Ownership of a Project in Toolkits****
>
>  ****
>
> Are you using the managment page? Under Users  templates then clicking
> View alongside a template you should see a give this template option?****
>
>  ****
>
> I seem to recall there was also a change ownership option somewhere but
> can't find it at the moment****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Julian Tenney
> *Sent:* 27 February 2012 08:16
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Changing Ownership of a Project in Toolkits****
>
>  ****
>
> I thought I’d be able to change owner of a project in the admin pages by
> bringing up the project’s properties and gifting a copy to someone else: I
> get ‘sorry, you don’t have right to the template’.****
>
>  ****
>
> Any bright idea on how I can easily give the admin user rights to do this
> Pat?****
>
>  ****
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham. ****
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system: you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation. ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.*
> ***
>
>  ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.*
> ***
>
>  ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.*
> ***
>
>  ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
> ****
>
> ** **
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120227/3b6d424a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 24396 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120227/3b6d424a/attachment-0001.png>


More information about the Xerte-dev mailing list