<div dir="ltr"><div><div><div><div>Hi Simone,<br><br></div>Thanks, I think I figured this out. I made the mistake (?) of assigning groupadmin to group1 from the group profile admin page (/admin/groups/groupprofile/). It seems that assigning users from the group profile admin page <u>does not</u> automatically assign the user to the particular group in the user profile admin page (/admin/people/profile/), which is necessary so groupadmin can access groupmember's unpublished layer from the group activity page (group1 also only needs the "Who can manage it?" permission for the layer). I had to assign groupadmin manually to group1 in their user profile admin page. This is already handled automatically if I assign groupadmin in the manage group members page (/groups/group/group1/members/). Perhaps this is can be considered a bug?<br><br></div>Also for groupadmin to be able to actually publish the layer, they must also have the permission to edit the layers metadata as well. And then they will be able to enable the "Is published" field. I find it kind of odd that even though a user has the "Who can manage it?" permission they must also have the "Who can change metadata for it?" just to be able to publish the layer.<br><br></div>Regards,<br><br></div>Tukang<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 1:56 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, I think that being a "staff" is not enough to get access to the db tables. You have to grant the staff specific permissions from the staff admin user page, there should be a drag and drop area where you can move add, remove, edit resourcebase on the right panel. <div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-08-27 8:43 GMT+02:00 Tukang Sampah <span dir="ltr"><<a href="mailto:tkgsmph@gmail.com" target="_blank">tkgsmph@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Dear all,<br><br></div>I have the following use case:<br><ol><li>RESOURCE_PUBLISHING is set to True</li><li>Group1 has 2 users: groupadmin as manager, and groupmember as member</li><li>User groupadmin has been assigned as a staff user by the superuser<br></li><li>User groupmember uploads a layer, they make sure that Group1 is set in the "Who can view it" and "Who can manage it" permissions</li><li>Because RESOURCE_PUBLISHING is True nobody can see the uploaded layer except groupmember</li><li>User groupadmin's job is to review and publish groupmember's layer</li></ol><p>It is mentioned in the doc (@ <a href="http://geonode.readthedocs.org/en/latest/reference/developers/settings.html" target="_blank">http://geonode.readthedocs.org/en/latest/reference/developers/settings.html</a>) that a staff user can access the admin page and publish/unpublish resources. However when user groupadmin accesses /admin/layers/layer/ they are not permitted, and when they access groupmember's uploaded layer page from the group activity a 404 error is returned.</p><p>My question: where can the groupadmin go to publish/unpublish groupmember's layer? Is groupadmin missing a permission to the layers admin page? The only way I can get groupmember's layer to be published is by the superuser themself, which is not desired.</p><p>Any suggestions are appreciated.</p><p>Thanks,</p><p>Tukang<br></p><p><br></p><p><br></p></div>
<br></div></div>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Simone </div>
</font></span></div></div>
</blockquote></div><br></div></div>