Update of
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/component/education
In directory james.mmbase.org:/tmp/cvs-serv22651/component/education
Modified Files:
DidactorEducation.java
Log Message:
various fixes
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/java/nl/didactor/component/education
Index: DidactorEducation.java
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/component/education/DidactorEducation.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- DidactorEducation.java 24 Jan 2008 15:48:41 -0000 1.14
+++ DidactorEducation.java 5 Feb 2008 15:05:55 -0000 1.15
@@ -18,7 +18,7 @@
/**
* @javadoc
- * @version $Id: DidactorEducation.java,v 1.14 2008/01/24 15:48:41 michiel Exp
$
+ * @version $Id: DidactorEducation.java,v 1.15 2008/02/05 15:05:55 michiel Exp
$
*/
public class DidactorEducation extends Component {
private static Logger log =
Logging.getLoggerInstance(DidactorEducation.class);
@@ -62,7 +62,7 @@
private static final Parameter SUBJECT = new Parameter("subject",
Node.class, true);
- private static final Parameter[] PARAMS = new Parameter[]
{Component.EDUCATION, Component.CLASS};
+ private static final Parameter[] PARAMS = new Parameter[]
{Component.EDUCATION, Component.CLASS, SUBJECT};
/**
@@ -75,7 +75,7 @@
Node subject = (Node) parameters.get(SUBJECT);
Node education = (Node) parameters.get(Component.EDUCATION);
Node clazz = (Node) parameters.get(Component.CLASS);
- int u = Integer.parseInt(user.getIdentifier());
+ int u =
((nl.didactor.security.UserContext)user).getUserNumber();
return u == subject.getNumber() ||
isTeacherOf(subject.getCloud(), u, subject.getNumber(),
education.getNumber(), clazz == null ? -1 : clazz.getNumber());
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs