<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
oh thanks! missed that in the (wonderful) flurry of responses I got.
That works, and makes me a lot happier about the code.<br>
.s<br>
<br>
Stefan Borchert wrote:
<blockquote cite="mid:46CB35B7.2000102@borchert.cc" type="cite">
<pre wrap="">sander-martijn schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">Anyone know of a way to query whether the user has edit rights on the
node (no matter what their role) instead of whether they're in a
particular role? Then I could rewrite this in a way that is more
maintainable.
</pre>
</blockquote>
<pre wrap=""><!---->As I wrote in my previous post: node_access('update', $node) will check
if you (the current user) has the right to update (eq. "edit") the given
node.
hth,
Stefan
</pre>
</blockquote>
</body>
</html>